in reply to Re: handling files using regular expression
in thread handling files using regular expression
#!/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 (Archbishop) on Jun 28, 2013 at 13:49 UTC |