in reply to How to remove non-numbers from string
#!/usr/bin/perl my $string=('data12.csv'); $string=~ s/\D//g; $string = 0 if $string eq ''; print "$string\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to remove non-numbers from string
by AnomalousMonk (Archbishop) on Jun 21, 2015 at 20:47 UTC | |
|
Re^2: How to remove non-numbers from string
by kgherman (Novice) on Jun 21, 2015 at 20:44 UTC |