in reply to Re: sytem command perl
in thread sytem command perl
See? I didn't quote $filename because the variable is already the argument I want to pass to 'perl'.system 'perl', '-pi', '-e', 's/>//g', $filename;
CHANGE_FILE: { my $backup = "${filename}~"; rename $filename, $backup; open my $b, '<', $backup; open my $f, '>', $filename; select $filename; s/>//g, print while <$backup> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sytem command perl
by FunkyMonk (Bishop) on Aug 25, 2008 at 10:33 UTC |