Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: whats wrong reverse %x = reverse %h?

by melora (Scribe)
on Sep 28, 2004 at 21:19 UTC ( [id://394759]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %h = (1 => 2, a=>"b", c => 2);
    %h = reverse (%x = reverse %h); 
    foreach my $n (keys %h) {
      print "$n $h{$n}\n";
    }
    
  2. or download this
     2
    1 2
    a b
    
  3. or download this
    %h = (1 => 2, a=>"b", c => 2);
    %x = reverse %h;
    ...
    foreach my $n (keys %h) {
      print "$n $h{$n}\n";
    }
    
  4. or download this
    1 2
    a b
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found