in reply to mkdir & date command

sprintf takes the same arguments as printf (except filehandle) but returns the formatted string instead of printing it.

In fact,

printf FH "%s ==> %i", $string, $int;
Is equivalent to:
print FH sprintf("%s ==> %i", $string, $int);
So you could easily use
mkdir(sprintf($format, @stuff));

Which would be much more elegant than writing to a file, then reading it back.

radiantmatrix
require General::Disclaimer;
"Users are evil. All users are evil. Do not trust them. Perl specifically offers the -T switch because it knows users are evil." - japhy

Replies are listed 'Best First'.
Re^2: mkdir & date command
by tc1364 (Beadle) on Nov 08, 2004 at 19:50 UTC
    Thank you... it works like a champ!