Handy Shortcuts
- $_ is the default variable
while (<>) { s/PERL/Perl/g; print; }
- <> reads from @ARGV, a line at a time, a file at a time
- while() loops through all lines until it hits the end of all files
- substitution operator works on $_ by default
- print operator prints $_ by default
Slide 31 of 47