RE: SFTP from Perl for Windows

2009-08-27 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:

Re: Need some explanation.

2009-08-27 Thread Raheel Hassan
*About quote():* Many thanks for your reply, But what is the difference in; select * from tablesname where x = ''; drop table tablename; --'; and select * from tablesname where x = '\'; drop table tablename; --'; both the statements seems to be SQL injection attack. What is thet role that quote

Re: Need some explanation.

2009-08-27 Thread Tim Bowden
On Thu, 2009-08-27 at 10:38 +0200, Raheel Hassan wrote: *About quote():* Many thanks for your reply, But what is the difference in; select * from tablesname where x = ''; drop table tablename; --'; and select * from tablesname where x = '\'; drop table tablename; --'; both the statements

Re: Need some explanation.

2009-08-27 Thread Chas. Owens
On Thu, Aug 27, 2009 at 04:38, Raheel Hassanraheel.has...@gmail.com wrote: About quote(): Many thanks for your reply, But what is the difference in; select * from tablesname where x = ''; drop table tablename; --'; and select * from tablesname where x = '\'; drop table tablename; --'; both

Printing a hash of hashes of arrays

2009-08-27 Thread Ian
Pure beginners question. I'm creating a hash of arrays like this : $ihash{$3}{$1} = [...@itab]; For now I was able to get the data using Dumper but I need to create a pretty report. How do I loop over this hash/hash of arrays to print it out? Thank you. -- Ian

Re: Printing a hash of hashes of arrays

2009-08-27 Thread Jim Gibson
On 8/27/09 Thu Aug 27, 2009 10:42 AM, Ian pcs...@gmail.com scribbled: Pure beginners question. I'm creating a hash of arrays like this : $ihash{$3}{$1} = [...@itab]; For now I was able to get the data using Dumper but I need to create a pretty report. How do I loop over this

source code for builtin functions

2009-08-27 Thread heyi xiao
Hello all, My linux system has a pre-installed perl. Is there a good way to check the source code for builtin functions, like reverse etc. I want to check the source code for better learning/understanding. Thanks a lot! Heyi

Re: Printing a hash of hashes of arrays

2009-08-27 Thread Uri Guttman
I == Ian pcs...@gmail.com writes: I Pure beginners question. I I'm creating a hash of arrays like this : I $ihash{$3}{$1} = [...@itab]; I For now I was able to get the data using Dumper but I need to create a I pretty report. I How do I loop over this hash/hash of arrays to print

Re: source code for builtin functions

2009-08-27 Thread Uri Guttman
hx == heyi xiao xiaohey...@yahoo.com writes: hx My linux system has a pre-installed perl. Is there a good way to hx check the source code for builtin functions, like reverse etc. I hx want to check the source code for better learning/understanding. all builtin functions are in c and not

Re: source code for builtin functions

2009-08-27 Thread Shawn H. Corey
heyi xiao wrote: Hello all, My linux system has a pre-installed perl. Is there a good way to check the source code for builtin functions, like reverse etc. I want to check the source code for better learning/understanding. Thanks a lot! Heyi Documentation for the built-in functions is

Re: source code for builtin functions

2009-08-27 Thread Telemachus
On Thu Aug 27 2009 @ 4:55, Shawn H. Corey wrote: Nowadays, Linux comes with Perl but not its documentation. To download it, start your favourite package manager and download the package perl-doc Also, since some of it refers to the Syscalls, you may want its documentation. Its package is

Re: source code for builtin functions

2009-08-27 Thread heyi xiao
Thanks,Uri and Shawn, for all the information. I knew perl is written in C, but I am still interested in checking the C source for some builtin function directly. Is there any good way to go? Heyi --- On Thu, 8/27/09, Uri Guttman u...@stemsystems.com wrote: From: Uri Guttman

Re: source code for builtin functions

2009-08-27 Thread Uri Guttman
hx == heyi xiao xiaohey...@yahoo.com writes: hx Thanks,Uri and Shawn, for all the information. I knew perl is hx written in C, but I am still interested in checking the C source hx for some builtin function directly. Is there any good way to go?

Re: source code for builtin functions

2009-08-27 Thread Telemachus
On Thu Aug 27 2009 @ 2:40, heyi xiao wrote: I knew perl is written in C, but I am still interested in checking the C source for some builtin function directly. Is there any good way to go? If you browse to this site, you can download the source code for whatever version of Perl you're

Re: source code for builtin functions

2009-08-27 Thread Shawn H. Corey
Telemachus wrote: On Thu Aug 27 2009 @ 2:40, heyi xiao wrote: I knew perl is written in C, but I am still interested in checking the C source for some builtin function directly. Is there any good way to go? If you browse to this site, you can download the source code for whatever version of

Re: source code for builtin functions

2009-08-27 Thread Chas. Owens
On Thu, Aug 27, 2009 at 17:18, Telemachustelemac...@arpinum.org wrote: On Thu Aug 27 2009 @  4:55, Shawn H. Corey wrote: Nowadays, Linux comes with Perl but not its documentation.  To download it, start your favourite package manager and download the package perl-doc  Also, since some of it

Re: source code for builtin functions

2009-08-27 Thread Shawn H. Corey
Telemachus wrote: On Thu Aug 27 2009 @ 4:55, Shawn H. Corey wrote: Nowadays, Linux comes with Perl but not its documentation. To download it, start your favourite package manager and download the package perl-doc Also, since some of it refers to the Syscalls, you may want its documentation.

Re: source code for builtin functions

2009-08-27 Thread Paul Johnson
On Thu, Aug 27, 2009 at 06:34:53PM -0400, Shawn H. Corey wrote: Telemachus wrote: On Thu Aug 27 2009 @ 2:40, heyi xiao wrote: I knew perl is written in C, but I am still interested in checking the C source for some builtin function directly. Is there any good way to go? If you browse to

CGI and persistent data (without Storable)

2009-08-27 Thread Steve Bertrand
I put this out as my first ever post to PerlMonks, but I feel a bit queasy about the whole web-question thing until I get a better feel for it. I'm more at home in plain-text, so here goes: I'm writing a web interface using CGI::Application for a project that houses numerous methods within a

Re: source code for builtin functions

2009-08-27 Thread Shawn H. Corey
Paul Johnson wrote: I don't think there's any need for that. I also don't think this is an inappropriate question for this list or that the C code is particularly ugly for that matter, but there you go. I didn't mean to offend anyone. All I meant was the questions about how Perl is

RE: SFTP from Perl for Windows

2009-08-27 Thread Ashley Cooper
Unfortunately I forgot to mention a crucial point about the function I am trying to code for. The source Windows server from which the files have to be copied is external to our organisation - the server belongs to a third party. The server is open for SFTP transfers on a specified port only,

Re: source code for builtin functions

2009-08-27 Thread Randal L. Schwartz
heyi == heyi xiao xiaohey...@yahoo.com writes: heyi Hello all, heyi My linux system has a pre-installed perl. Is there a good way to check heyi the source code for builtin functions, like reverse etc. I want to check heyi the source code for better learning/understanding. If you really think

RE: SFTP from Perl for Windows

2009-08-27 Thread rkb
Ashley Cooper wrote: Unfortunately I forgot to mention a crucial point about the function I am trying to code for. The source Windows server from which the files have to be copied is external to our organisation - the server belongs to a third party. The server is open for SFTP transfers on

Exploiting the Perl

2009-08-27 Thread Steve Bertrand
My last question, rephrased to be direct-to-the-point: Multi-part howto, or STFU if it's not possible request: - create a scalar to contain the memory address of a reference to a complex data structure - store ONLY the memory address using 'Storable' (or some other mechanism) - create a

Re: Exploiting the Perl

2009-08-27 Thread Steve Bertrand
Steve Bertrand wrote: My last question, rephrased to be direct-to-the-point: Multi-part howto, or STFU if it's not possible request: - create a scalar to contain the memory address of a reference to a complex data structure - store ONLY the memory address using 'Storable' (or some other

RE: SFTP from Perl for Windows

2009-08-27 Thread Ashley Cooper
You beauty! I am new to this whole ppm thing, and didn't know about the additional repositories. I have now been able to install the FTLSSL module I originally wanted and make some progress at last. Thanks a million. :-) @shley -Original Message- From: r...@i.frys.com

Re: source code for builtin functions

2009-08-27 Thread heyi xiao
Thanks a lot, guys, for your help and the hot, informative discussion! I really got better idea at where/how to look perl source code. Although I may not fully understand the C code itself. Heyi --- On Thu, 8/27/09, Randal L. Schwartz mer...@stonehenge.com wrote: From: Randal L. Schwartz

Exploiting the Perl Garbage Collection (possibly) was:[ Exploiting the Perl]

2009-08-27 Thread Steve Bertrand
Steve Bertrand wrote: My last question, rephrased to be direct-to-the-point: Multi-part howto, or STFU if it's not possible request: - create a scalar to contain the memory address of a reference to a complex data structure - store ONLY the memory address using 'Storable' (or some other

Re: Printing a hash of hashes of arrays

2009-08-27 Thread Ian
Thank you David, Jim, Uri.