Try the following:
use Modern::Perl; my $writetot = 'first part/second part'; my ($busitotal, $perstotal) = split '/', $writetot; say "$busitotal -- $perstotal";
Output:
first part -- second part
Hope this helps!
In reply to Re: splitting data
by Kenosis
in thread splitting data
by BluGeni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |