in reply to Re: system, pipes, shell, quoting
in thread system, pipes, shell, quoting
#!/usr/bin/perl $fname = "foo\nbar"; #-- standard idiot-proof open $fname = "./$fname" if $fname =~ /^\s/; open F, "> $fname\0"; print F "testing 1 2 3\n"; close F; system("cat \Q$fname\E"); # produces error unlink $fname;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: system, pipes, shell, quoting
by BrowserUk (Patriarch) on Nov 13, 2002 at 21:00 UTC |