will give you beginning digits as the index of the hash and rest of the string as the value.$hash{$1} = $2 if ($str =~ /([0-9]+)(.+)/) ;
beginning digits as the index and the whole string as the value of the index.$hash{$1} = $str if ($str =~ /([0-9]+)(.+)/) ;
In reply to Re: Removing digits until you see | in a string
by Mandrake
in thread Removing digits until you see | in a string
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |