in reply to string manupulation

sub split_by_colon { my $string=shift; my @parts; while (length $string) { push @parts,"" unless @parts; my $char=substr($string,0,1,""); unless ($char eq ":") { $parts[-1].=$char; } else { push @parts,""; } } return @parts; }
Or you could look in perlfunc for a better way

;-)

Yves / DeMerphq
---
Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)

Replies are listed 'Best First'.
Re: Re: string manupulation
by waswas-fng (Curate) on Sep 05, 2002 at 21:33 UTC
    lol =)

    -Waswas