Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: inserting into file

by olus (Curate)
on Mar 24, 2009 at 15:30 UTC ( #752900=note: print w/ replies, xml ) Need Help??


in reply to inserting into file

What kind of arguments are you giving to unshift? If you just want to add a piece of text before a line of text just $_ = "Date\n".$_ unless $. == 1;


Comment on Re: inserting into file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-06 10:28 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 (71 votes), past polls