Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-28 Thread salva
Chas Owens wrote: > Be careful, this is Net::SFTP::Foreign, not Net::SFTP. > They are very similar, but there are differences. Well, I should know, as I am the module author ;-) > For instance the ls method > returns an arrayref, not a list in Net::SFTP::Foreign. This means > your code should

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-27 Thread Stephen Kratzer
On Friday 24 August 2007 21:00:37 John W. Krahn wrote: > Stephen Kratzer wrote: > > On Friday 24 August 2007 08:57:26 Marian Bednar wrote: > >> I am a newbie in this forum and Perl too ;-) > >> > >> I am trying writing script transfering files using module > >> Net::SFTP::Foreign. > >> > >> I need

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-27 Thread Chas Owens
On 8/27/07, salva <[EMAIL PROTECTED]> wrote: > On Aug 24, 2:57 pm, [EMAIL PROTECTED] (Marian Bednar) wrote: > > Hi all, > > > > I am a newbie in this forum and Perl too ;-) > > > > I am trying writing script transfering files using module > > Net::SFTP::Foreign. > > > > I need to retrieve from remo

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-27 Thread salva
On Aug 24, 2:57 pm, [EMAIL PROTECTED] (Marian Bednar) wrote: > Hi all, > > I am a newbie in this forum and Perl too ;-) > > I am trying writing script transfering files using module > Net::SFTP::Foreign. > > I need to retrieve from remote directory only names of files (not > directories, links,etc.

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-24 Thread John W. Krahn
Stephen Kratzer wrote: On Friday 24 August 2007 08:57:26 Marian Bednar wrote: I am a newbie in this forum and Perl too ;-) I am trying writing script transfering files using module Net::SFTP::Foreign. I need to retrieve from remote directory only names of files (not directories, links,etc.).

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-24 Thread Chas Owens
On 8/24/07, Marian Bednar <[EMAIL PROTECTED]> wrote: snip > print "$_->{filename} \n" if -f $_->{filename}; snip > Script above write out nothing, but if last line is this > > print "$_->{filename} \n"; > > It writes out names of files, directories, but I need only names of files. > How can I get i

Re: Get names of files ONLY using module Net::SFTP::Foreign

2007-08-24 Thread Stephen Kratzer
On Friday 24 August 2007 08:57:26 Marian Bednar wrote: > Hi all, > > > I am a newbie in this forum and Perl too ;-) > > I am trying writing script transfering files using module > Net::SFTP::Foreign. > > I need to retrieve from remote directory only names of files (not > directories, links,etc.). >