![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: pass subroutine value to scalarby dpuu (Chaplain) |
on Jan 12, 2006 at 02:46 UTC ( #522605=note: print w/replies, xml ) | Need Help?? |
The subroutine as your have coded it doesn't actually have a meaningful return value. The problem is that the "system" command does not capure the output text of the command. Perl has a different operator for that:
The qx operation could also be written using backticks:
--Dave Opinions my own; statements of fact may be in error.
In Section
Seekers of Perl Wisdom
|
|