Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by tobyink (Canon)
on Sep 20, 2012 at 22:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://994770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found