Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Variable Scoping in Perl: the basics

by marcelpaulo (Novice)
on May 27, 2018 at 00:19 UTC ( [id://1215262]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    package Szyewicki;
    
    print "Here at work, 'Robert' is $Robert, but over at the pool hall, '
    +Robert' is $PoolHall::Robert\n";
    
  2. or download this
    Here at work, 'Robert' is the darts expert, but over at the pool hall,
    + 'Robert' is the darts expert
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    our ($Robert);
    print "Here at work, 'Robert' is $Robert, but over at the pool hall, '
    +Robert' is $PoolHall::Robert\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found