Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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/);

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

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



-- Yeah, I'm a Delt.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596947]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)
[marto]: lazyweb Q: so an IE window apparently opened via JS with toolbars=no, all other IE instances closed. Click a URL in an email or whatever, and it doesn't open a new window or tab.
[marto]: does JS lock down windows created via to prevent this?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-03-21 11:33 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.