Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 chanting in the Monastery: (7)
As of 2014-12-21 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls