Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Time command output is not stored into the variable.by ungalnanban (Pilgrim) |
on Apr 07, 2010 at 05:23 UTC ( [id://833188]=perlquestion: print w/replies, xml ) | Need Help?? |
ungalnanban has asked for the wisdom of the Perl Monks concerning the following question: I want to store the time command output into a variable I used the following code but It shows an ERROR. Please help me. use strict; use warnings; #my $time =`time ls`; my $time = `time`; print $time; Output Should be the following real 0m0.000s user 0m0.000s sys 0m0.000s --$ugum@r--
Back to
Seekers of Perl Wisdom
|
|