in reply to for mistake with shift
sub article_title3 { local $_ = shift(@text); # left in for side effect while (defined ($_ = shift @text)) { print "# TEXT-1 = '$_'\n"; unshift(@text, $_), last if /^$/; # put empty line back } print "# TEXT-2 = '$_'\n" for @text; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: for mistake with shift
by hsmyers (Canon) on Dec 31, 2003 at 15:00 UTC | |
by hsmyers (Canon) on Dec 31, 2003 at 15:25 UTC |