in reply to Re^3: pull single value
in thread pull single value
#!/usr/bin/perl use strict; use warnings; my @array; my $record = "+1 102 892-1314"; $record = "662-5555"; if ($record =~ m/(^\d{3}-\d{4}$)/) { push @array, $record; } print "@array";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: pull single value
by ikegami (Patriarch) on Nov 10, 2009 at 04:08 UTC |