deepjyot has asked for the wisdom of the Perl Monks concerning the following question:
why do i get an error while using this command in a perl script?system(perl -pi -e 's/>//g' filename);
Error:
And when run the command: "perl -pi -e 's/>//g' filename" on the shell, it works perfectly fine....Substitution replacement not terminated at -e line 2.
Can anyone let me know the reason behind this?
thanks in advance...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sytem command perl
by Anonymous Monk on Aug 25, 2008 at 05:00 UTC | |
by massa (Hermit) on Aug 25, 2008 at 09:43 UTC | |
by FunkyMonk (Bishop) on Aug 25, 2008 at 10:33 UTC | |
by deepjyot (Initiate) on Aug 25, 2008 at 05:21 UTC | |
by ysth (Canon) on Aug 25, 2008 at 05:30 UTC | |
by Anonymous Monk on Aug 25, 2008 at 05:33 UTC |