Can some experienced monks show me how THEY would go about this?$mech->content() =~ m#Lumber:</td><td align="right"><b>(\d+)#i; my $lumber = $1; $mech->content() =~ m#Clay:</td><td align="right"><b>(\d+)#i; my $clay = $1; $mech->content() =~ m#Iron:</td><td align="right"><b>(\d+)#i; my $iron = $1; $mech->content() =~ m#Crop:</td><td align="right"><b>(\d+)#i; my $crop = $1;
Thank you!
In reply to help shorten this series of regexes by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |