holly has asked for the wisdom of the Perl Monks concerning the following question:
foreach $line (@file) { $line =~ s/\s\b{70}/$1\n/g); }
If anyone has any advice, I'd love to hear it!
thanks,
Holly
edit:replaced pre-tag with code-tag (neophyte, 2001-08-27)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I split a string at a char position that's also the end of a word?
by japhy (Canon) on Aug 27, 2001 at 15:17 UTC | |
|
Re (tilly) 1: How do I split a string at a char position that's also the end of a word?
by tilly (Archbishop) on Aug 27, 2001 at 16:07 UTC | |
|
Re: How do I split a string at a char position that's also the end of a word?
by MZSanford (Curate) on Aug 27, 2001 at 15:13 UTC | |
|
Re: How do I split a string at a char position that's also the end of a word?
by htoug (Deacon) on Aug 27, 2001 at 16:28 UTC | |
|
Re: How do I split a string at a char position that's also the end of a word?
by lshatzer (Friar) on Aug 27, 2001 at 18:09 UTC |