Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Flip-flop reset?

by Dietz (Curate)
on Aug 30, 2006 at 06:02 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found