in reply to Re^2: how to use perl variable in system command to run on unix
in thread how to use perl variable in system command to run on unix
q does not expand variables, for that you need qq e.g.
% perl -E '$x = "hello"; say q($x)' $x % perl -E '$x = "hello"; say qq($x)' hello
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: how to use perl variable in system command to run on unix
by tousifp (Novice) on Sep 03, 2013 at 17:28 UTC | |
by Laurent_R (Canon) on Sep 03, 2013 at 17:53 UTC | |
by tousifp (Novice) on Sep 04, 2013 at 11:57 UTC | |
by Arunbear (Prior) on Sep 04, 2013 at 09:50 UTC | |
by tousifp (Novice) on Sep 04, 2013 at 11:59 UTC |
In Section
Seekers of Perl Wisdom