Re: Searching text file and printing to new file

2008-01-18 Thread Gunnar Hjalmarsson
Rob Dixon wrote: Gunnar Hjalmarsson wrote: [EMAIL PROTECTED] wrote: On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: open my $IN, '<', 'infile.txt' or die $!; open my $OUT, '>', 'outfile.txt' or die $! while ( <$IN> ) { print $OUT scalar <$IN> if /^fi

Re: Searching text file and printing to new file

2008-01-18 Thread Tri Trinh
On Jan 18, 10:27 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Gunnar Hjalmarsson wrote: > > [EMAIL PROTECTED] wrote: > >> On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > >>> [EMAIL PROTECTED] wrote: > I have a large text file with > information essentially broken into li

Re: Searching text file and printing to new file

2008-01-18 Thread Rob Dixon
Gunnar Hjalmarsson wrote: [EMAIL PROTECTED] wrote: On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: [EMAIL PROTECTED] wrote: I have a large text file with information essentially broken into lines like this: findable text with a regexp information I care about more findable t

Re: Searching text file and printing to new file

2008-01-17 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: [EMAIL PROTECTED] wrote: I have a large text file with information essentially broken into lines like this: findable text with a regexp information I care about more findable text There are plenty of se

Re: Searching text file and printing to new file

2008-01-17 Thread PlagueMagazine
On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > [EMAIL PROTECTED] wrote: > > I'm a nearly absolute beginner to Perl, > > Then this site ought to be useful:http://learn.perl.org/ > > > and a lot of the text manipulation things confuse me. > > Really? Which things specifically, an

Re: Searching text file and printing to new file

2008-01-14 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I'm a nearly absolute beginner to Perl, Then this site ought to be useful: http://learn.perl.org/ and a lot of the text manipulation things confuse me. Really? Which things specifically, and in what way? I have a large text file with information essentially broken