I am having a problem with a section of my perl script. The error I recieve is as follows: Unmatched [ before HERE mark in regex m/[ << HERE / at parse.pl line 37.
The section of code looks like this:
elsif($value =~ /\d\d?
d\d
d\d/){
@Z = split(':', $value);
foreach $parse(@Z){
if($parse =~ /\[\d\d/){
@split = split('[', $parse);
foreach $line(@split){
if($line =~ /\d\d/){
$line = $line + 12;
print $line;
}
else{
print $line;
}
}
}
}
}
Thanks for the help!
The section of code looks like this:
elsif($value =~ /\d\d?
d\d
d\d/){@Z = split(':', $value);
foreach $parse(@Z){
if($parse =~ /\[\d\d/){
@split = split('[', $parse);
foreach $line(@split){
if($line =~ /\d\d/){
$line = $line + 12;
print $line;
}
else{
print $line;
}
}
}
}
}
Thanks for the help!