Your files are written to a file called 'brick'. Move that to wherever you're working on your neato searching script.
note: the warnings pragma is a 5.6ism.
#!/usr/bin/perl use warnings; use strict; use Carp; use Storable qw{ freeze }; use File::Slurp; my %html_files; opendir TD, '.' or croak $!; foreach my $file (readdir TD) { $html_files{$file} = read_file($file); } my $brick = freeze( \%html_files ); open OUT, ">brick" or croak $!; print OUT $brick; close OUT or carp $!; exit 0; # 'good' exit for the shell
In reply to All files in dir to Storable.pm data by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |