Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: parse

by mp (Deacon)
on Jul 24, 2002 at 20:02 UTC ( [id://185009]=note: print w/replies, xml ) Need Help??


in reply to simple parse question

#! /usr/local/bin/perl -w #----------------------------------------------- use strict; use warnings; while(<>) { next unless m/ ^(\d+) # Match the number \s+ # Match spaces after number \S+? # Minimally match path ([^\/]+)$ # Match everything after the last slash /x; my ($linesOfCode,$filename)=($1,$2); # Access captured text print "$linesOfCode, $filename\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found