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

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

by Athanasius (Chancellor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-02-24 07:12 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (353 votes). Check out past polls.