Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: push to array without copying

by BrowserUk (Patriarch)
on Nov 14, 2016 at 23:34 UTC ( [id://1175919]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash = ('a'=>'test');
    
    my @arr = delete $hash{'a'};
    
    print $arr[0]."\n";
    
  2. or download this
    %h = qw[ the quick black fiend jumps over the lazy god child ];;
    
    ...
    
    pp \%h;;
    { jumps => "over" }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found