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

Re^2: Filling a hash

by chester (Hermit)
on Oct 26, 2005 at 16:41 UTC ( #503108=note: print w/replies, xml ) Need Help??


in reply to Re: Filling a hash
in thread Filling a hash

Here is another simple solution. Inputs are taken 2 per line, separated by ^Q for clarity's sake, ignoring malformed input.

until (defined($flag) and defined($flag) == $flag) { ($_=substr(<STDIN>,0,-1)) !~ /\A^\be{1,1}\B(?=x(?=i(?=t)))\Bx{1,1} +\B(?=i(?=t))i(?=t)\Bt{1,1}\b\Z\z$/ and ((index($_,"\x11") == -1) or ($_{ substr($_,0,index($_,"\x +11")) } = substr($_,index($_,"\x11")+1))) or ($flag = print map {$_.$".$_{$_}.$/} keys %_) }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503108]
help
Chatterbox?
[stevieb]: 16.96 hours of runtime of a Raspberry Pi on a 12v, 7.2Ah battery :) Now to watch now long it takes to recharge the battery completely with my 18v solar cells in the sun :)
[stevieb]: my high-range estimate was 18 hours
[stevieb]: battery was at about 95% capacity when the test began
[stevieb]: in the meantime while it was on battery, I got my shift register issues fixed, as well as certain interrupt issues

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-03-26 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.