Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Confused by a Conditional

by ZZamboni (Curate)
on Jun 10, 2001 at 20:12 UTC ( [id://87305]=note: print w/replies, xml ) Need Help??


in reply to Re: Confused by a Conditional
in thread Confused by a Conditional

The only way the conditional in your snippet evaluates to true is if $key=='ID'. Try setting $key to 'GENE', for example (which is one of the valid values), and you'll see.

--ZZamboni

Replies are listed 'Best First'.
Re: Re: Re: Confused by a Conditional
by damian1301 (Curate) on Jun 10, 2001 at 20:18 UTC
    delete

    Tiptoeing up to a Perl hacker.
    Dave AKA damian

      This prints oh for me, just as I would expect. ActivePerl 5.005_03 on Win2K.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found