in reply to Removing delimiters
That said, if you need them both of them at various times, you should probably split on :: to an array when you read the file and then pass a reference to that around.$_ = "foo::bar"; my ($head) = /^.*?::/; my ($tail) = /::.*/;
Makeshifts last the longest.
|
|---|