Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Using IF and OR, I'm sure there is a better way

by Fletch (Bishop)
on Dec 15, 2005 at 01:23 UTC ( [id://516825] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use YAML ();
    
    ...
    if( exists $items->{ $variable } ) {
      # . . .
    }