Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Re: Re: I need a simple explantion of the difference between my() and local()

by buckaduck (Chaplain)
on May 02, 2001 at 22:28 UTC ( [id://77455]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( (my $name = GetName()) =~ /^\w+$/) ) {
      print $name;
    }
    
  2. or download this
    while (my $line = <>) {
      print $line;
    ...
    foreach my $name (@people) {
      print $name;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found