Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: array => hash of occurrence indexes

by kcott (Canon)
on Sep 12, 2013 at 05:19 UTC ( #1053646=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub occurences {                                                    
        my %h;          
    ...
        push @{$h{$_}}, $i++ for @_;
        return \%h;
    }
    
  2. or download this
    sub occurences { my ($i, %h) = 0; push @{$h{$_}}, $i++ for @_; \%h }
    
  3. or download this
    $ perl -Mstrict -Mwarnings -e '
        use Data::Dumper;
    ...
                       7
                     ]
            };
    
  4. or download this
    $ perl -Mstrict -Mwarnings -e '
        use Data::Dumper;
    ...
                       4
                     ]
            };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053646]
help
Chatterbox?
[Discipulus]: no makita sorry. i see in the synopsis of the module: "WARNING: Only limited real-life experience" might be better compose a SOPW with some code example and data
[Discipulus]: ..or inspect the source code of the module
[makita]: I am doing this:
[makita]: my $sig = $wss->signature( schema => $wsdl, token => $token, sign_types=>'wsa: Action','wsa:To', 'wsu:Timestamp', 'wsa:MessageID',' SOAP-ENV:Body', signer=>DSIG_RSA_S HA1, public_key => $cert,
[Corion]: Oof, I haven't done much with signing SOAP requests. markov is usually somebody good to ask via mail ;)
[makita]: I need to create a SOAP call where are signed more types not only the body
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-03-23 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.