Keep It Simple, Stupid | |
PerlMonks |
Re^2: What is wrong with variable?by insaniac (Friar) |
on Mar 19, 2006 at 08:41 UTC ( [id://537731]=note: print w/replies, xml ) | Need Help?? |
so the posted code works?
What is this supposed to do? Initialize both $last and $now to '0'? Guess again... works better ;-) btw, what is this supposed to do: The last two lines will never get executed... never! BTW: why do you use backticks in your system() sub? It's either `$1`, or do{ open(my $cmdh, '-|', $1); <$cmdh> } or system($1)... but combining two of them is probably not what you want to do... and... you might wanna write those 4 lines in a different order: 3 lines... does the same thing ;) cya!
to ask a question is a moment of shame
In Section
Seekers of Perl Wisdom
|
|