Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regexp's

by Cybercosis (Monk)
on Oct 03, 2000 at 10:37 UTC ( #35068=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @ARGV = filename.txt;
    
    ...
      /^(\d)\s+time\s+\d{2}\:\d{2}\:\d{2}\s+(\d+)/;
      $hash{$1} = $2;
    }
    
  2. or download this
      
    while(<>)
    {
    ...
        $hash{$1} = $2;
      }
    }
    
  3. or download this
    while(<>)
    {
    ...
       $hash{$1} = $2;
     }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-13 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?