If you pipe the output of ls into perl, you are really just giving it a string containing file names. You need to change that to:
In order to give perl the opportunity to scan @ARGV and then read the file contents.perl -lpi -e 's/e/*/' testfile
In reply to Re: -i switch behaviour
by pbeckingham
in thread -i switch behaviour
by fireartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |