read_dir from File::Slurp will do that for you. Also Storabe has a sub to write the data directly to a file
use strict; use Storable; use File::Slurp; my %html_files = map { ($_, scalar read_file($_)) } read_dir("."); store(\%html_files, "brick");
In reply to Re: All files in dir to Storable.pm data
by gbarr
in thread All files in dir to Storable.pm data
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |