padawan_linuxero has asked for the wisdom of the Perl Monks concerning the following question:
So it giving me an error message saying that it cant not read the file, and is because it has no data to read. So my cuestion is how can I delete the files with 0kb?, I know to use unlink but is impossible to know if the next time the same file is comming empty can someone put an example, please thanks!!my $parser = Text::CSV::Simple->new; my @data = $parser->read_file($infile);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to delete empty files
by kyle (Abbot) on Jan 10, 2008 at 20:25 UTC | |
|
Re: How to delete empty files
by leocharre (Priest) on Jan 10, 2008 at 21:52 UTC | |
by padawan_linuxero (Scribe) on Jan 11, 2008 at 00:37 UTC | |
by leocharre (Priest) on Jan 11, 2008 at 11:03 UTC |