in reply to splitting data

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!