Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Trying to skip for $LEV = 0

by dorko (Parson)
on Jan 28, 2007 at 07:01 UTC ( #596947=note: print w/ replies, xml ) Need Help??


in reply to Trying to skip for $LEV = 0

DATA is a file handle, but it looks like your trying to use it as a label.

Also, I'm not sure why your trying to use a matching regular expression. I'd test for equality. Instead of:
next DATA if ($LEV =~ /0/);

try:
next if ($LEV == 0);  # $LEV is a number -- NO DATA
or
next if ($LEV eq '0')  # $LEV is a string -- NO DATA

Without examples of your data, these suggestions are just guesses.

Cheers,

Brent

-- Yeah, I'm a Delt.


Comment on Re: Trying to skip for $LEV = 0
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-07-05 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls