Welcome to the Monastery | |
PerlMonks |
Re: Running External Commandsby Michalis (Pilgrim) |
on Jun 06, 2000 at 16:33 UTC ( [id://16590]=note: print w/replies, xml ) | Need Help?? |
The best way (to my knowledge) to do that is to use backticks, assigning the
result to a scalar (the output doesn't have to be a single line,
or a single word or anything.
For example:
You should be very careful though, if you decide to pass to the command options from the user's input (for example through a CGI script). But that's a fact, either you use backticks or system.
In Section
Seekers of Perl Wisdom
|
|