Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
There's more than one way to do things
 
PerlMonks  

Re: Count similar characters in a row

by jwkrahn (Monsignor)
on Oct 06, 2010 at 15:30 UTC ( #863818=note: print w/ replies, xml ) Need Help??


in reply to Count similar characters in a row

# open the file open INFILE, '<', 'my_column_file.txt' or die "Couldn't open 'my_colum +n_file.txt' $!"; while ( <INFILE> ) { my ( $row_num, @fields ) = split; print if @fields == grep /r/, @fields; }


Comment on Re: Count similar characters in a row
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2014-04-17 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls