The stupid question is the question not asked | |
PerlMonks |
Re: All files in dir to Storable.pm databy gbarr (Monk) |
on Oct 03, 2001 at 01:56 UTC ( [id://116278]=note: print w/replies, xml ) | Need Help?? |
You call readdir, but you do not check that the name you get back is indeed a file. More specifically you want
to skip . and ..
read_dir from File::Slurp will do that for you. Also Storabe has a sub to write the data directly to a file
In Section
Cool Uses for Perl
|
|