![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: create file with current date for nameby tachyon (Chancellor) |
on Aug 07, 2001 at 20:09 UTC ( #102831=note: print w/replies, xml ) | Need Help?? |
Your need sprintf not printf. This works as expected. The 1 is the true return value from printf which gets assigned to $ymd after printf has printed the string.
You can simplify and use the default behaviour for localtime and an array slice to give this:
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|