Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 romping around the Monastery: (9)
As of 2014-12-26 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls