in reply to Quoting arguments to system
If you want to show two different shell lines, then hand the command to the shell, using a single-arg invocation for system:
However, I would not recommend doing this in production code. This is just a demo.for my $quote (q{}, q{"}) { $cmd = "ls -l ${quote}simple.pl${quote}"; warn $cmd; system $cmd;
The real question I have is "what are you trying to do, and why do you care about the quotes?".
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Quoting arguments to system
by princepawn (Parson) on Oct 21, 2000 at 02:27 UTC | |
by merlyn (Sage) on Oct 21, 2000 at 09:54 UTC |