Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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; }

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 having an uproarious good time at the Monastery: (3)
As of 2016-09-25 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.