Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

KPeter0314

by KPeter0314 (Deacon)
on May 21, 2002 at 17:09 UTC ( #168204=user: print w/replies, xml ) Need Help??

  • Unix since '91
  • Perl since '00

Working in South Dakota and living in Iowa (Nebraska is just the other side of the river and a decent place to go for lunch). I've been doing the Unix SysAdmin gig for over 10 years with HPUX and Solaris (and a few others) experience.

Geek Code:

-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/IT/MU d+ s+: a C+++$ ULHSC++++$ P++(--)$ L++$ E--- W+>++ w !O M->+ PS+(-) Y+ PGP++ t+(*) 5++ X-- R++>* tv@ b+>+++ DI+++ D+ G e++(*) h---- r+++ y++++ ------END GEEK CODE BLOCK------
Perl Geek Code:

-----BEGIN PERL GEEK CODE BLOCK----- Version: 0.01 P++c---P6-R++M >++O MA E PU BD C D+S+++$X-WP++>+++MO!PP!n-CO--PO-o-G A--OLC+OLCC---OLJ--Ee---Ev+Eon!uL+>+++$ uB+$uS+++$uH++uo+w-->!m! ------END PERL GEEK CODE BLOCK------
decode it

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[davido]: Using the -i switch causes Perl to rename the input file, read from it, and write to a file using the original file's name. If there's an extension provided, as in -i.bak, it's easy to see where the input file is. Where is the input file temporarily....
[davido]: placed if there is no extension provided to the -i switch?
[davido]: Nevermind, found the answer.
[davido]: If no extension is supplied, and your system supports it, the original file is kept open without a name while the output is redirected to a new file with the original filename. When perl exits, cleanly or not, the original file is unlinked.
[haukex]: doc says "If no extension is supplied, and your system supports it, the original file is kept open without a name ..."

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-09-22 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (264 votes). Check out past polls.

    Notices?