
shawnhcorey
Enthusiast

Jul 8, 2009, 6:42 AM
Post #2 of 5
(6612 views)
|
Hi, I have some string like "000 05 27832 Food Chn KR FM CORP W/O AK - RMA", i want to process the first 3 characters, each should be of 0-9 and write it in a file. I have an idea of using like $var1 = [0-9]{3,} and now comparing this with the above string. Can anyone pls help me wat this [0-9]{3,} literally means?? It means a syntax error. Try: $var1 =~ /[0-9]{3,}/; This means match the first string of characters in $var1 in the range of '0' to '9' for 3 to infinite times. __END__ I love Perl; it's the only language where you can bless your thingy. Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib. Get Markup Help. Please note the markup tag of "code".
|