Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: uninitialized weirdness

by vaevictus (Pilgrim)
on Nov 17, 2000 at 01:04 UTC ( [id://42078]=note: print w/replies, xml ) Need Help??


in reply to uninitialized weirdness

The following code demonstrates and summarized my problem...
Thanks everyone... :)
(Mark_Dominus coded this) ->
#!/usr/bin/perl -w $def = ''; undef $notdef; if($def eq 'foo') { # Line 4 } elsif ($def eq 'bar') { } elsif ($notdef eq "RHS") { # Line 7 }
The error reports a problem with line4, not line 7, where the error is.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-05-21 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found