lomSpace has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; local $/ = '//'; my $genpept = "/Users/mb/Desktop/proteins.gp"; my $peptstr1 = '/Users/mgavibrathwaite/Desktop/'; open(my OUT,">$peptstr1") or die $!; open(my IN,$genpept); #my $i = 1; while (my $records = <IN>){ #$i++; chomp $records; my @genpept; push @genpept,($records); print"Processed infile record: $.\n"; foreach(@genpept){ print "$_"; } } close(IN); close(OUT);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can i print to my outfile handle?
by Eliya (Vicar) on Feb 20, 2011 at 23:23 UTC | |
Re: How can i print to my outfile handle?
by jwkrahn (Abbot) on Feb 20, 2011 at 23:22 UTC | |
Re: How can i print to my outfile handle?
by Corion (Patriarch) on Feb 20, 2011 at 21:30 UTC | |
| |
Re: How can i print to my outfile handle?
by broomduster (Priest) on Feb 20, 2011 at 23:31 UTC | |
Re: How can i print to my outfile handle?
by GrandFather (Saint) on Feb 20, 2011 at 23:56 UTC | |
Re: How can i print to my outfile handle?
by umasuresh (Hermit) on Feb 20, 2011 at 22:23 UTC | |
| |
Re: How can i print to my outfile handle?
by Monkomatic (Sexton) on Feb 21, 2011 at 00:48 UTC |