Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 examining the Monastery: (3)
As of 2025-06-17 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.