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: [StarkRavingCalm] Compare unchanged files in two arrays: Edit Log



StarkRavingCalm
User

Mar 4, 2013, 12:30 PM


Views: 3034
Re: [StarkRavingCalm] Compare unchanged files in two arrays

ok, sftp and ftp work great.
but running against vms gives weird results which seems to just be the way that the output is presented in vms.

Example output:
$VAR1 = {
'upfile_20130226_13221660.TXT' => undef,
'upfile_20130220145458.TXT' => undef,
'upfile_20130206112304.TXT' => undef,
'TMP.DIR' => undef,
'RPT.DIR' => undef,
'FTP_SERVER.LOG' => undef,
'SRT.DIR' => undef,
'PRM.DIR' => undef,
};

Here is what a 'dir' (in unix emulation mode) on the server looks like:

-rwxrwxr-x 1 * ras 980 Feb 5 16:13 upfile_20130226_13221660.TXT
-rwxrwxr-x 1 * ras 2450 Feb 5 16:20 upfile_20130220145458.TXT
-rwxrwxr-x 1 * ras 1960 Feb 6 11:23 upfile_20130206112304.TXT


No matter what field I try to set $size to in the example code above, it always comes back as undef.
Is this a problem with the separators?


NOTE: If I copy the results into a text file, I can get the fields I want with awk.
So does that mean that the fields separators are correctly formated?
What am I missing here?


(This post was edited by StarkRavingCalm on Mar 4, 2013, 12:55 PM)


Edit Log:
Post edited by StarkRavingCalm (User) on Mar 4, 2013, 12:55 PM


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

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