I want to delete the last record which will have different numbers but in this case is 9987. This is where i am with script on Windows.3098 4908 3098 54098 34098 2308 9987
my $stuff = 'file.txt'; open(F, "$stuff") || die "Can not open file: $!\n"; my @records = (<F>); print "@records\n"; s/lastlineofdata//; #This is the part I am struggling with close(F);
In reply to Delete last record in text file by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |