in reply to Re: Implicit assignment to $_
in thread Implicit assignment to $_
"This is a prime example of why I preach so heavily about use strict;. If you had invoked that pragma you'd have seen the warning:
"Use of uninitialized value $_ in print at sopw-simple.pl line 6."
Nuh-uh... strict does no such thing.
strict does three things:
strict never issues any warnings. And strict doesn't care about variables being undef (unless you try to dereference them).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Implicit assignment to $_
by blue_cowdawg (Monsignor) on Feb 26, 2013 at 18:40 UTC | |
by tobyink (Canon) on Feb 26, 2013 at 20:21 UTC | |
by hippo (Archbishop) on Feb 26, 2013 at 22:40 UTC |