ozgurp has asked for the wisdom of the Perl Monks concerning the following question:
if($Number =~ m/\d{1,8}/){ $N = $Number; }else{ print("line has more than 8 digits!\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching between 1 to 8 digits but not more
by moritz (Cardinal) on Aug 20, 2009 at 09:11 UTC | |
|
Re: matching between 1 to 8 digits but not more
by FunkyMonk (Bishop) on Aug 20, 2009 at 08:57 UTC | |
|
Re: matching between 1 to 8 digits but not more
by cdarke (Prior) on Aug 20, 2009 at 09:08 UTC | |
|
Re: matching between 1 to 8 digits but not more
by Old_Gray_Bear (Bishop) on Aug 20, 2009 at 09:13 UTC | |
|
Re: matching between 1 to 8 digits but not more
by james2vegas (Chaplain) on Aug 20, 2009 at 09:01 UTC | |
|
Re: matching between 1 to 8 digits but not more
by JavaFan (Canon) on Aug 20, 2009 at 10:04 UTC | |
by Anonymous Monk on Aug 21, 2009 at 14:12 UTC | |
|
Re: matching between 1 to 8 digits but not more
by bpoag (Monk) on Aug 21, 2009 at 22:41 UTC |