Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Deparse says \my(%hash) is the same as \my %hash but it isn't

by Athanasius (Canon)
on Nov 21, 2012 at 16:46 UTC ( #1004951=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    23:10 >perl -Mstrict -wE "my @c = ('a' .. 'e'); my $q = \@c; my $r = \
    +(@c); say $q, ' --> ', @$q, qq[\n], $r, ' --> ', $$r;"
    ARRAY(0x18a5654) --> abcde
    SCALAR(0x4bc344) --> e
  2. or download this
     1:46 >perl -Mstrict -wE "my $q = \my @c;  @c = ('f' .. 'h'); say $q, 
    +' --> ', @$q;"
    ARRAY(0x177554c) --> fgh
    SCALAR(0x1d20f6c) -->
     1:46 >
  3. or download this
        (a) \my %hash  --> (b)  \my(%hash)
    but (b) \my(%hash) --> (c) \(my(%hash))
  4. or download this
     1:11 >perl -wE "warn undef;"
    Use of uninitialized value in warn at -e line 1.
    SCALAR(0x1d20f6c) at -e line 1.
     1:12 >

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-12-02 01:53 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (31 votes), past polls