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

Re: Re: Perl vs. Python: Looking at the Code

by buckaduck (Chaplain)
on Apr 03, 2002 at 18:56 UTC ( #156389=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if listElement in aList:
       ... do stuff ...
    
  2. or download this
    # Do stuff if $list_element is in @a_list
    if ($list_element =~ @a_list) {
    ...
      # If not in @a_list, what about @other_list ?
      when @other_list  { ... do stuff ... }  
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2019-10-21 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?