On Dec 6, Jorge Goncalvez said:
>Hi, I wanted to patch a file and I have this:
>
>system(perl -i.rig -pe 's!/home/ftp!/!g' c:\cygwin\etc\passwd)
>
>it fails when I put in a script but it succeed if i run it by hand in a bash.
Because you haven't quoted the system() string.
system(q{perl -i.rig -pe 's!/home/ftp!/!g' c:\cygwin\etc\passwd});
and are you sure that works under windows? I thought windows required you
to use -e "..." instead of -e '...'.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]