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

Re: Is it safe to use join on a hash?

by davido (Cardinal)
on Sep 07, 2020 at 01:08 UTC ( [id://11121427]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @nums = (17, 10, 20, 33, 30, 40, 10, 33, 40, 15, 16, 17);
    
  2. or download this
    my %unordered = map { $_ => undef } @nums;
    
  3. or download this
    my @un_nums = join " ", keys %unordered;
    
  4. or download this
    print "@un_nums\n";
    
  5. or download this
    my @array1 = (1, 2, 3, 4, 5);
    my @array2 = ("1 2 3 4 5");
    
    print "@array1\n";
    print "@array2\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121427]
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: (6)
As of 2024-04-19 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found