[sf-perl] Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE NO/

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Mon Jan 15 15:31:11 PST 2007


Hello,
 
I am getting the following error when I hit the following record when
trying to m// the field "[NO".
 
my $field = substr($_, $offset, $length);
 
elsif ($field =~ m/^[0-9]*\s+[0-9]$/ || $field =~ m/\W+/) {
 
When I leave in the part "|| $field =~ m/\W+/)" the error goes away, but
without this, I am getting an error.
 
0000080476714676AF544C3730FF17377E381D0A40C89E6F66CC177078B2A87BFA71BE03
9EMB3E31BEC6707E4E64C36955F9A980C0E
F299A8CB68A3A3AB571225CAB9A85D0D4193401[NO20060704Y2006070510000003
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE NO/
 
Your input will be greatly appreciated.
 
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20070115/72895ada/attachment.html 


More information about the SanFrancisco-pm mailing list