in reply to Re^2: Guest Cleanup
in thread Guest Cleanup
$elem is a lousy variable name, just as bad as $count.
I respectfully disagree. It's bad, but not as bad. $elem carries very little information; $count is actually misleading.
In such situations, I tend to use $_, which has the advantage of being known, a priori, as a list iterator, by virtue of its special relation to foreach and while(<>).
for ( "$year:$mon:$mday", "$hour:$min:$sec" ) { mkdir $_ or die "mkdir $_ - $!"; chdir $_ or die "chdir $_ - $!"; }
|
|---|