in reply to splitting headache
A very quick and dirty way of doing this would be:
$line = "Pugh.Pugh.Barney.McGrew.Cuthbert.Dibble.Grub"; $line =~ s/\./\n/g; $line =~ s/([^\n]*)\n/$1./; print $line;
This page is intentionally left justified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: splitting headache
by Wibble (Beadle) on Feb 26, 2002 at 14:41 UTC |