Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Perl is more intuitive

by kiat (Vicar)
on Aug 18, 2005 at 16:27 UTC ( [id://484858]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while($element = each ($fruit)) {
      echo $element['key'];
    ...
      echo $element['value'];
      echo '<br />';
    }
    
  2. or download this
    while (($key, $value) = each (%fruit) {
      print $key;
    ...
      priint $value;
      print '<br />';
    }
    
  3. or download this
    for x in 0...c.length do print c[x], " " end
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-19 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found