use strict;can help make your program more bullet-proof, but sometimes it's too annoying for quick throw-away programs.
use English;allows you to refer to special variables (like $RS) as though they were in awk; see the perlvar manpage for details.
Awk Perl ARGC $#ARGV or scalar @ARGV ARGV[0] $0 FILENAME $ARGV FNR $. - something FS (whatever you like) NF $#Fld, or some such NR $. OFMT $# OFS $, ORS $\ RLENGTH length($&) RS $/ RSTART length($`) SUBSEP $;
while (<FH>) { } while ($_ = <FH>) { }.. <FH>; # data discarded!
$x = /foo/; $x =~ /foo/;
sub SeeYa { die "Hasta la vista, baby!" } $SIG{'QUIT'} = SeeYa;In Perl 4, that set the signal handler; in Perl 5, it actually calls the function! You may use the -w switch to find such places.
shift @list + 20; $n = keys %map + 20;Because if that were to work, then this couldn't:
sleep $dormancy + 20;