However, if i want the match to occur at at the end i would include an addition $if (m/\|\Q$file/) {print $num_entry};
For example if the user entered Sarah it could output Sarah and Sarah-jane. But this second bit of code doesnt seem to work?if (m/\|\Q$file$/) {print $num_entry};
In reply to Re^2: pattern match a name from stdin
by Anonymous Monk
in thread pattern match a name from stdin
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |