in reply to Re: shell read of val
in thread shell read of val
I'll add two things to roboticus' excellent treatment:
Firstly, be careful with backticks when you want your your script to run on different systems as it always runs a "system shell" and that may not be the same shell on different systems.
And secondly there is another syntax for backticks, which is qx. The advantage of qx is that you can choose your own delimiters, so e.g.
can also be written asmy $result = `command`;
which I find nicer, though your taste my of course be different.my $result = qx| command |;
In Section
Seekers of Perl Wisdom