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

Re: Add a newline to the end of a file

by PodMaster (Abbot)
on Nov 28, 2002 at 13:08 UTC ( #216296=note: print w/replies, xml ) Need Help??


in reply to Add a newline to the end of a file

Don't know what kind of hacked version of perl you got, but you need to give -i something.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Add a newline to the end of a file
by jmcnamara (Monsignor) on Nov 28, 2002 at 13:46 UTC

    From perlrun:
    -i[extension] ... If no extension is supplied, no backup is made and the current file is overwritten.

    However, on Dos and some other OSes the extension is mandatory. This is due to the fact that these OSes cannot unlink an open file.

    --
    John.

Re: Re: Add a newline to the end of a file
by simonflk (Pilgrim) on Nov 28, 2002 at 13:39 UTC

    I imagine it's a regular perl, but the platform is something other than Windows.

    See perlrun and the latest p5p digest

    -- simonflk

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2023-02-03 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (27 votes). Check out past polls.

    Notices?