in reply to unexpected behavior with split
Actually, I'm pretty sure that it is working. It's just that you are discarding your changes by sometimes using $new, sometimes using $aphor. Specifically:
$new= join "\n\t", @sect; &shortenlines; # uses $amphor for input instead of $new.
You'll gain so much by using proper parameters and return values. It is much harder to make a good program that uses globals and exit() all over the place (but not impossible, says Wassercrats).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unexpected behavior with split
by ww (Archbishop) on Aug 31, 2004 at 20:34 UTC | |
by ikegami (Patriarch) on Aug 31, 2004 at 20:57 UTC | |
by ww (Archbishop) on Aug 31, 2004 at 21:49 UTC |