CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [FishMonger] Compare unchanged files in two arrays: Edit Log



StarkRavingCalm
User

Jan 30, 2013, 8:27 AM


Views: 3550
Re: [FishMonger] Compare unchanged files in two arrays

Thanks, this is working now with this statement:

foreach my $file (</tmp/scripttest/inbound/*>) { $local_files{$file} = (stat($file))[7]; }

but it is showing the full path:
'/tmp/scripttest/inbound/file3' => '10'

How can I have show just filename and size as I am comparing against the hashes I received from the remote server prior to download


(This post was edited by StarkRavingCalm on Jan 30, 2013, 8:29 AM)


Edit Log:
Post edited by StarkRavingCalm (User) on Jan 30, 2013, 8:29 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives