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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: All files in dir to Storable.pm data
by TheoPetersen (Priest) on May 13, 2001 at 03:39 UTC | |
|
Re: All files in dir to Storable.pm data
by jepri (Parson) on May 13, 2001 at 16:27 UTC | |
by knobunc (Pilgrim) on May 14, 2001 at 18:00 UTC | |
by merlyn (Sage) on May 14, 2001 at 18:02 UTC | |
by jepri (Parson) on May 14, 2001 at 18:16 UTC | |
|
Re: All files in dir to Storable.pm data
by converter (Priest) on May 13, 2001 at 18:57 UTC | |
|
Re: All files in dir to Storable.pm data
by gbarr (Monk) on Oct 03, 2001 at 01:56 UTC | |
|
Re: All files in dir to Storable.pm data
by Anonymous Monk on Oct 03, 2001 at 00:58 UTC |