[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Code reduction




On Thu, 17 May 2007, Sean Baker wrote:
That's why Larry invented -w.  To save you from using != //.

pbaker@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