The book also shows a very neat short hand which I also cannot figure out how to use:#!perl use strict; use 5.010; $^I = "myinfo.txt.bak"; while( <myinfo.txt> ) { s/^Author:.*/Author: Johny5/; s/^Phone:.*\n//; print; }
Please help!!!$ perl -p -i.bak -w -e 's/dude/Johnny5/g' myinfo.txt
In reply to "Updating" files. by neutron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |