Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: converting from php

by TedPride (Priest)
on Nov 21, 2005 at 05:44 UTC ( [id://510373]=note: print w/replies, xml ) Need Help??


in reply to converting from php

The following produce equivalent results. $_ is the default if you don't specify a variable name.
@the_days = ('whatever','values','go','here'); foreach $eachday (@the_days) { print "$eachday\n"; } for $eachday (@the_days) { print "$eachday\n"; } for (@the_days) { print "$_\n"; } print "$_\n" for @the_days;

Log In?
Username:
Password:

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

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

    No recent polls found