Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: **HomeWork** Printing the found input from an array

by pKai (Priest)
on Apr 02, 2008 at 21:11 UTC ( [id://678044]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # works as expected!
    
  2. or download this
    my @myCities = (1 .. 2);
    my $city = "before";  # now is scoped to the whole package!
    ...
    
    # ... unless you expected it to print "after"
    # ... actually it prints "before"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2025-04-20 03:55 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.