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,
Is equivalent to:printf FH "%s ==> %i", $string, $int;
So you could easily useprint FH sprintf("%s ==> %i", $string, $int);
mkdir(sprintf($format, @stuff));
Which would be much more elegant than writing to a file, then reading it back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mkdir & date command
by tc1364 (Beadle) on Nov 08, 2004 at 19:50 UTC |