in reply to matching a defined lenght
I don't know exactly what you're trying to do, but substr will get you there. If you really don't care what's in it,
extracts the first thirty characters.my $match = substr $string, 0, 30;
If you need some real matching, an expression like
works fine. substr is an lvalue function, so that even works for substitution.substr($string, 0, 30) =~ /$re/
After Compline,
Zaxo
|
|---|