in reply to Little things ;)
I am sure there are others, but these are ones i have had in the past few weeks.# getting just the year $y = (localtime($utc))[5]+1900; # Basic hash un-rolling # (this is an example, better var names in real life) foreach my $a (sort keys %hash) { foreach my $b (sort keys %{ $hash{$a} }) { # co-workers stumble at the line above } } # in an OO module sub print_stats { $_[0]->{fh}->stats(); } # lastly, co-workers are often confussed by : use strict;
$ perl -e 'do() || ! do() ;' Undefined subroutine &main::try
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Little things ;)
by Caillte (Friar) on Dec 13, 2001 at 18:08 UTC | |
by tilly (Archbishop) on Dec 13, 2001 at 19:16 UTC | |
by kevin_i_orourke (Friar) on Dec 14, 2001 at 19:31 UTC | |
by Caillte (Friar) on Dec 14, 2001 at 20:15 UTC |