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

Answer: How do I delete/modify one line from test file ?

by devslashneil (Friar)
on Jun 19, 2003 at 01:33 UTC ( #267043=categorized answer: print w/replies, xml ) Need Help??

Q&A > files > How do I delete/modify one line from test file ? - Answer contributed by devslashneil

Another way of removing the line would be:

#!/usr/bin/perl use Tie::File; my $filename = 'foo.dat'; tie @array, 'Tie::File', $filename or die "Cannot open $filename\n"; splice @array,1,1

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[LanX]: LOL

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2017-11-21 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (312 votes). Check out past polls.

    Notices?