[Omaha.pm] Code reduction

Jay Hannah jay at jays.net
Thu May 17 14:20:05 PDT 2007


On Thu, 17 May 2007, Sean Baker wrote:
> That's why Larry invented -w.  To save you from using != //.
>
> pbaker at razorbill:~> perl t.pl
> no match 1
> Use of uninitialized value in pattern match (m//) at t.pl line 7.
> Argument "egg" isn't numeric in numeric ne (!=) at t.pl line 7.

Hey, that would have been helpful!

Confessional: I gave up on -w years ago when I disagreed with some of its 
"uninitialized" complaints in code I deemed clean. I guess the day I had 
that problem I should have given -w a stab at my code.  :)

j



More information about the Omaha-pm mailing list