Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: file header change

by utpalmtbi (Acolyte)
on Feb 05, 2013 at 10:17 UTC ( #1017103=note: print w/replies, xml ) Need Help??


in reply to Re: file header change
in thread file header change

use strict; use warnings; sub read_file { my( $filename ) = <STDIN>; my @lines; sub read_file { my( $filename ) = <STDIN>; my @lines; open( FILE, "< $filename" ) or die "Can't open $filename : $!"; { if( @line =~ />contig_(\d+)\s/ ) { print ">$1\n"; } else { print "$line\n"; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017103]
help
Chatterbox?
choroba isn't sure
[choroba]: I plan to break the monolith into modules and create a CPAN App distribution, but I haven't expolored the details yet
[1nickt]: choroba Is it a safe assumption that if there is a threaded perl then the user will want to use Thread::Queue?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2017-10-18 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?