however your particular example should be written other way. Looks like youre recently from C world... Welcome to perl! youll write shorter code soon...
addition using index function should boost speed and shorten your code simultaneously, see perldoc -f index
Best regards,
Courage, the Cowardly Dog
In reply to Re: Substr versus Regexp
by Courage
in thread Substr versus Regexp
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |