http://qs321.pair.com?node_id=106071


in reply to another way to split with limit

What exactly do you want to do?
If all that you want is to remove the `:' and print the string then just do:
$_ = "p:e:r:l"; $_ =~ s/://g; # substitue all the `:' by nothing print "$_\n";

Guillaume

Replies are listed 'Best First'.
Re: Re: another way to split with limit
by Anonymous Monk on Aug 20, 2001 at 00:16 UTC
    I want to actually use the individual values I was thinking maybe substitute the split part with ($a,$b) = /(.*):(.*)/;