Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, just trying to print the size of a ftp'd file.
for $file (@files) { $ftp->get($file) and $ftp->delete($file); $remotesize = $ftp->size($file); $localssize=(stat ($file))[7]; print "$file $localsize $remotesize $theGMTime"; #<-line 25 }
but it throws " Use of uninitialized value in concatenation (.) or string at -e line 25" and the remotesize and localsize has no value
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NEWBIE: posible sintax error
by FunkyMonk (Bishop) on Jul 02, 2010 at 16:32 UTC | |
by Anonymous Monk on Jul 02, 2010 at 18:13 UTC | |
by FunkyMonk (Bishop) on Jul 02, 2010 at 20:41 UTC | |
|
Re: NEWBIE: posible sintax error
by johngg (Canon) on Jul 02, 2010 at 16:31 UTC | |
by Anonymous Monk on Jul 02, 2010 at 18:08 UTC | |
|
Re: NEWBIE: posible sintax error
by zek152 (Pilgrim) on Jul 02, 2010 at 16:37 UTC | |
by Anonymous Monk on Jul 02, 2010 at 18:17 UTC |