RE: SFTP from Perl for Windows

2009-08-26 Thread David Christensen
Ashley Cooper wrote: > I need to be able to do file transfers via SFTP from Perl > (ActiveState) in a Windows environment but I am having trouble > finding a suitable Perl module that works. > ... > Can anyone suggest ... a different option? Cygwin and Cygwin Perl and OpenSSH packages: http:/

Re: SFTP from Perl for Windows

2009-08-26 Thread Sisyphus
- Original Message - From: "Ashley Cooper" To: "Sisyphus" ; Sent: Thursday, August 27, 2009 1:37 PM Subject: RE: SFTP from Perl for Windows I can see a Net::SSH on ActiveState, but not Net::SSH2. Is this the same thing? No, it's different - and there's no Net::SSH2 on the ActiveS

Re: Taint mode & user supplied file names

2009-08-26 Thread Tim Bowden
On Wed, 2009-08-26 at 14:48 -0700, Mark Wagner wrote: > On Mon, Aug 24, 2009 at 06:06, Tim Bowden wrote: > > On Mon, 2009-08-24 at 14:46 +0200, Rob Coops wrote: > > > > >> In your case where you run the script from a command line you will still > >> want to make sure that a user is not for instan

RE: SFTP from Perl for Windows

2009-08-26 Thread Ashley Cooper
I can see a Net::SSH on ActiveState, but not Net::SSH2. Is this the same thing? Regards, @shley -Original Message- From: Sisyphus [mailto:sisyph...@optusnet.com.au] Sent: Thursday, 27 August 2009 1:30 PM To: Ashley Cooper; beginners@perl.org Subject: Re: SFTP from Perl for Windows

Re: SFTP from Perl for Windows

2009-08-26 Thread Sisyphus
- Original Message - From: "Sisyphus" Adapted (and untested) from an actual script I use: ## use warnings; use strict; use Net::SSH2; my $server = 'server.nameer'; my $ssh2 = Net::SSH2->new; die "can't connect" unless $ssh2->connect($server); print "Conn

Re: SFTP from Perl for Windows

2009-08-26 Thread Sisyphus
- Original Message - From: "Ashley Cooper" To: Sent: Thursday, August 27, 2009 12:13 PM Subject: SFTP from Perl for Windows I need to be able to do file transfers via SFTP from Perl (ActiveState) in a Windows environment but I am having trouble finding a suitable Perl module that wo

Re: Business::UPS upgrade

2009-08-26 Thread Chas. Owens
On Wed, Aug 26, 2009 at 20:47, Rick Bragg wrote: > Hi, > > I currently have version 1.13 installed and it gives me bogus prices > nothing to do with the real prices that UPS charges.  I am trying to > upgrade to version 2.0, but I can't seem to figure out how.  I used CPAN > to install version 1.13

SFTP from Perl for Windows

2009-08-26 Thread Ashley Cooper
I need to be able to do file transfers via SFTP from Perl (ActiveState) in a Windows environment but I am having trouble finding a suitable Perl module that works. I have tried installing Net::SFTP::Foreign via ppm but it apparently relies on having an ssh command that it can call to establish

Business::UPS upgrade

2009-08-26 Thread Rick Bragg
Hi, I currently have version 1.13 installed and it gives me bogus prices nothing to do with the real prices that UPS charges. I am trying to upgrade to version 2.0, but I can't seem to figure out how. I used CPAN to install version 1.13. What is the best way to upgrade to version 2.0? Also, Is

Re: Regular expression help

2009-08-26 Thread Chas. Owens
On Wed, Aug 26, 2009 at 03:46, Dave Tang wrote: snip >> for my $token ($line =~ /([,"]|[^,"]+)/g) { > > I changed the single pipe (|) to double pipes (||) and $token also contained > empty strings. Could you explain the difference between the pipes? snip The pipe character in regexes creates an al

Re: Taint mode & user supplied file names

2009-08-26 Thread Mark Wagner
On Mon, Aug 24, 2009 at 06:06, Tim Bowden wrote: > On Mon, 2009-08-24 at 14:46 +0200, Rob Coops wrote: > >> In your case where you run the script from a command line you will still >> want to make sure that a user is not for instance printing a socket or some >> part of the memory. > > The -f tes

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Tony Esposito
Thank you all for the input ... I have it working now. :-) From: Tim Bowden To: Perl Beginners Sent: Wednesday, 26 August, 2009 15:20:13 Subject: Re: removing a 'tee'd file handles going forward On Wed, 2009-08-26 at 18:22 +, Tony Esposito wrote: > Agree

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Tim Bowden
On Wed, 2009-08-26 at 18:22 +, Tony Esposito wrote: > Agreed. But the program flow would be such (pseudo-code): > > (1) print STDOUT > print STDERR > (2) now print to both in one print statement > > (3) now go back to > print STDOUT > print STDERR > > I want to switch back-and

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Tony Esposito
Ok.  I misunderstood.  Thought - incorrectly - that STDOUT and STDERR were somehow 'joined' by the 'tee' operation.  Once again, my mistake.  Thx. From: Jenda Krynicky To: Tony Esposito Cc: Beginners Perl Sent: Wednesday, 26 August, 2009 13:51:03 Subject: Re

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Jenda Krynicky
From: Tony Esposito > Agreed.  But the program flow would be such (pseudo-code): > > (1) print STDOUT >     print STDERR > (2) now print to both in one print statement > > (3) now go back to >     print STDOUT >     print STDERR > > I want to switch back-and-forth between being able to print to ST

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Tony Esposito
Agreed.  But the program flow would be such (pseudo-code): (1) print STDOUT     print STDERR (2) now print to both in one print statement (3) now go back to     print STDOUT     print STDERR I want to switch back-and-forth between being able to print to STDOUT, STDERR with one 'print' stateme

Re: removing a 'tee'd file handles going forward

2009-08-26 Thread Jenda Krynicky
Date sent: Wed, 26 Aug 2009 15:36:26 + (GMT) From: Tony Esposito Subject:removing a 'tee'd file handles going forward To: Beginners Perl > I want to output to both STDOUT and STDERR at one point in my program, then > want to separate the two handles going forward in the p

removing a 'tee'd file handles going forward

2009-08-26 Thread Tony Esposito
I want to output to both STDOUT and STDERR at one point in my program, then want to separate the two handles going forward in the program so that output is sent to STDOUT and STDERR separately.  Given the code snip below, would the "undef tee" do the trick?   use IO::Tee; my $tee = new IO::Tee(

Re: Need some explanation.

2009-08-26 Thread Chas. Owens
On Wed, Aug 26, 2009 at 06:20, Raheel Hassan wrote: > In CPAN documentation of DBI, i have problems in understanding the use, i > read the given text many times but it is not explained in detail, can any > one suggest me some other sites where i can get details and clear > expalnation of the under

Need some explanation.

2009-08-26 Thread Raheel Hassan
In CPAN documentation of DBI, i have problems in understanding the use, i read the given text many times but it is not explained in detail, can any one suggest me some other sites where i can get details and clear expalnation of the under given functions. Also are there any other sites for understa

Self made portable Perl

2009-08-26 Thread Panda-X
Hi folks, I am working on Win32, and I've made myself a portable system with a web server ( Xerver with Java ), an Active Perl 5.10, and my Perl Lib group, and my CGI scripts. Yet my ( so called ) portable Perl runs fine, and what I do in the setup process is just to extract the files from a zip

Re: Regular expression help

2009-08-26 Thread Dave Tang
On Wed, 26 Aug 2009 16:41:39 +1000, Chas. Owens wrote: On Wed, Aug 26, 2009 at 02:23, Dave Tang wrote: Dear list, I am trying to import entries in a csv file into a relational database, however there are entries such as: a,b,c,d,e,"f1,f2","g1,g2" which spoil my split(/,/). snip Sounds li