Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Extracting information from file to Hash

by bart (Canon)
on Jan 18, 2012 at 22:07 UTC ( #948632=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /^Collection=>(\S*) \s+ 
      ImageCount=>(\S*) \s+
      Status=>(\S*) \s+
      Missing=>(\S*) \s+
      Modified=>(.*\S) /x
    
  2. or download this
    my %r = 
        /^ (Collection)=>(\S*) \s+ 
    ...
           (Missing)=>(\S*) \s+
           (Modified)=>(.*\S)
        /x;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948632]
help
Chatterbox?
[choroba]: dereference ne creation
[choroba]: at least in my lingo
[moritz]: .oO( oh temps, oh moritz )
[GotToBTru]: you are correct, choroba, but of course there is no point in doing one without the other
[GotToBTru]: un less you're working on write-only memory
[1nickt]: my $x = $aohoaoh->[0]->{' foo'}->[0]->{'bar' }; should work
[thepkd]: not indexing
[thepkd]: getting data out of the ds
[choroba]: it depends. Give more details, please
[thepkd]: i used a series of {}'s but it dont work

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2016-12-06 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.