#!/usr/bin/perl -w use strict; use Tie::File; my $filename = 'file.txt'; tie my @data, 'Tie::File', $filename or die "couldn't tie(): $!"; pop @data; untie @data;
hope this helps,
In reply to Re: Delete last record in text file
by CukiMnstr
in thread Delete last record in text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |