Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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";


Comment on Re: Flip-flop reset?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2015-07-06 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls