in reply to Re: handling files using regular expression
in thread handling files using regular expression
yes, sorry.. i did forget to include that. but inspite of including the use strict and warnings, i did not get any warning and neither did my output file get updated. kindly help me.
#!/usr/bin/perl use strict; use warnings; my $input; my $start; open (FILE, 'name.tsv'); open (OFILE, '>probe_dist.tsv'); while (<FILE>){ ($input)= split ("\t"); $start= $input; } while (<FILE>) { $start =~ m/:(\d+)/; print OFILE "$start\n"; } close (FILE); exit;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: handling files using regular expression
by hdb (Monsignor) on Jun 28, 2013 at 13:54 UTC | |
by rocketperl (Sexton) on Jun 28, 2013 at 15:24 UTC | |
Re^3: handling files using regular expression
by marto (Cardinal) on Jun 28, 2013 at 13:57 UTC | |
Re^3: handling files using regular expression
by hippo (Bishop) on Jun 28, 2013 at 13:49 UTC |
In Section
Seekers of Perl Wisdom