in reply to Re^2: how to get numbers only from n numbers or more digit numbers?
in thread how to get numbers only from n numbers or more digit numbers?
Note: I would rather use a scalar variable, instead of an array variable with only one element like you had.use warnings; use strict; my $f='chapter 01,02,03,04'; if(my @m=$f=~/,([0-9]{2})/g){ print "@m\n"; #prints 02 03 04 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to get numbers only from n numbers or more digit numbers?
by virudinesh (Acolyte) on Jun 13, 2013 at 10:39 UTC | |
by Anonymous Monk on Jun 14, 2013 at 07:36 UTC |