Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Use of "my" after Perl v5.14

by tobyink (Abbot)
on Sep 20, 2012 at 22:36 UTC ( #994770=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use v5.14;
    ...
      say $var;
    }
    say $var;
    
  2. or download this
    use v5.14;
    
    ...
    
    set("Hello world");
    say $global;
    
  3. or download this
    $Foo::Bar::monkey  = 'capuchin';
    @Foo::Bar::monkies = qw( capuchin howler spider );
    ...
    );
    
    $::Hello = "World";  # is an alias for $main::Hello
    
  4. or download this
    {
      package Foo::Bar;
    ...
      say $monkey;   # blank line (it's undefined)
      say $Foo::Bar::monkey;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-31 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls