As you're only trying to match the beginning of a string with no wildcards using index seems like a simpler approach.
foreach (@items) { say "$_ match" if index($_,$master) == 0; }
In reply to Re: I think regex Should Help Here... but How!?
by RichardK
in thread I think regex Should Help Here... but How!?
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |