Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: push to array without copying

by BrowserUk (Patriarch)
on Nov 14, 2016 at 23:34 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-08-10 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?