Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Flip-flop reset?

by Dietz (Curate)
on Aug 30, 2006 at 06:02 UTC ( #570315=note: print w/replies, xml ) Need Help??


in reply to Flip-flop reset?

You could make sure that your last array element always ends with a newline before processing it, to use your existing code:

$arr[-1] .= "\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570315]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-11-18 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?