Help for this page

Select Code to Download


  1. or download this
    sub get_html_filename{
    use Net::SFTP::Foreign;
    use File::Basename;
    ...
    my $html_file = $word.$new_num.'.'.$filetype;
    return $html_file;
    }
    
  2. or download this
    $ perl powell1.pl 
    title is powell
    values are [correct]
    ...
    old num is 2
    new file is powell3.html
    $
    
  3. or download this
    my $ls = $sftp->ls('/home/ftptest/inbound', no_wanted => qr/^\./ );
    my @names_and_sizes = map { { filename => $_->{filename}, size => $_->
    +{a}->size } } @$ls;
    
    # or...
    
    my %size = map { $_->{filename} => $_->{a}->size } @$ls;