Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Why? uninitialized value in pattern match when using if (defined)

by GrandFather (Saint)
on Mar 21, 2006 at 23:30 UTC ( [id://538344]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "$tmpf\n";   # prints 'farms'
    print keys( %factories), "\n";   # 'farms' is one of them.
    print "Is defined" if ( defined $factories{ $tmpf});
    
  2. or download this
    farms
    farms
    Is defined
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://538344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-14 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found