How do I pass Shell parameters to Perl script?
问题 I am trying to find dates with in a certain format, I have done it before with perl( strftime ), but that time I mentioned a static time, this time i need a variable $CURRENT_DAY here. Below is the issue, when equate the CURRENT_DAY by using DAYHOUR=86400 and an integer, the variable is giving the right time, but once I put $CURRENT_DAY variable in the statement, the date would not decrease. $ DAYHOUR=86400 $ DAY=1 $ CURRENT_DAY=`echo $(($DAYHOUR*$DAY))` $ DD=`perl -e 'use POSIX; print