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

JPaul's scratchpad

by JPaul (Hermit)
on Jun 01, 2004 at 20:53 UTC ( #358580=scratchpad: print w/replies, xml ) Need Help??

my $Str = "AAAA001BBBB001CCCC000DDDD023EEEE012"; my %H; while($Str) { my $s = substr($Str, 0, 4, ''); my $i = substr($Str, 0, 3, ''); %H{$s} = $i; }
Output: AAAA -> 001 BBBB -> 001 CCCC -> 000 DDDD -> 023 EEEE -> 012
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2019-04-21 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (110 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!