in reply to Processing data from SSH stream
somewhere early in your script and add some debugging aids into the problematic sub, likeuse Data::Dumper;
Maybe that reveals something that would explain the different behavior of the first run compared with the subsequent ones.sub get_remote_file { print "Retrieving data file..."; my @site_data; print Dumper( $conx ); chomp( @site_data = `$conx` ); print Dumper( @site_data ); if ( $? >> 8 ) { print "Failed!\n"; } else{ print "Success!\n"; } for $line( @site_data ) { ( $name, $filepath, $mod, $md5 ) = split( "\,", $line ); $site_data{$name} = ["$filepath", "$mod", "$md5"]; } @site_data = (); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Processing data from SSH stream
by Spasticus (Initiate) on May 11, 2007 at 01:00 UTC | |
by snoopy (Curate) on May 11, 2007 at 01:34 UTC |