Re: About hashes and file processing

2011-11-22 Thread Goke Aruna
Hi, The key $port is not declared while spilting the lines from the file handle. Goke On 11/21/11, Shlomi Fish wrote: > Hello Raito, > > some comments on your code: > > On Sun, 20 Nov 2011 21:52:46 -0600 > Raito Garcia wrote: > >> Hi everybody >> >> Well I have some problems with my mind, becou

Re: module is installed but getting error

2011-11-22 Thread Kenneth Wolcott
On Tue, Nov 22, 2011 at 12:47, Rajeev Prasad wrote: > thanks, that was the quickest resolve for me on this LIST ever. thank you! > > From: Kenneth Wolcott > To: Rajeev Prasad > Cc: perl list > Sent: Tuesday, November 22, 2011 2:35 PM > Subject: Re: module is ins

Re: using require "file.txt"

2011-11-22 Thread Jim Gibson
On 11/22/11 Tue Nov 22, 2011 2:04 PM, "Chris Stinemetz" scribbled: > I am working on a Perl script that is getting quite lengthy so I thought I > would put the sub routines, hashes, and arrays in a seperate script from > the main. > > The program will run when I turn use strict off in the main

Re: Safely updating a file

2011-11-22 Thread Uri Guttman
On 11/22/2011 04:27 PM, Mark Wagner wrote: I want to update a status file, similar to this: open OUTFILE, ">", "status.txt"; print OUTFILE "$last_date\n"; close OUTFILE; However, if something goes wrong (e.g. the disk is full), this code will replace "status.txt" with an empty file. How can I

using require "file.txt"

2011-11-22 Thread Chris Stinemetz
I am working on a Perl script that is getting quite lengthy so I thought I would put the sub routines, hashes, and arrays in a seperate script from the main. The program will run when I turn use strict off in the main script, but when I turn it on the main script doesn't recognize the hash and arr

using WWW::Mechanize thru proxy to https(SSL) with website/form authentication, proxy error!!

2011-11-22 Thread Rajeev Prasad
Here is the prob description in short: 1.    post your url in browser: https://myrel/files/file.doc 2.    you get a logon page (URL still looking same) 3.    enter field names:  username/password 4.    press 'ok' button (name = bsubmit)     after successful login: 5.    you get new page:    http

Re: Safely updating a file

2011-11-22 Thread Jim Gibson
On 11/22/11 Tue Nov 22, 2011 1:27 PM, "Mark Wagner" scribbled: > I want to update a status file, similar to this: > > open OUTFILE, ">", "status.txt"; > print OUTFILE "$last_date\n"; > close OUTFILE; > > However, if something goes wrong (e.g. the disk is full), this code > will replace "statu

Re: Safely updating a file

2011-11-22 Thread Shawn H Corey
On 11-11-22 04:27 PM, Mark Wagner wrote: I want to update a status file, similar to this: open OUTFILE, ">", "status.txt"; print OUTFILE "$last_date\n"; close OUTFILE; However, if something goes wrong (e.g. the disk is full), this code will replace "status.txt" with an empty file. How can I up

Safely updating a file

2011-11-22 Thread Mark Wagner
I want to update a status file, similar to this: open OUTFILE, ">", "status.txt"; print OUTFILE "$last_date\n"; close OUTFILE; However, if something goes wrong (e.g. the disk is full), this code will replace "status.txt" with an empty file. How can I update the file while preserving the previous

Re: module is installed but getting error

2011-11-22 Thread Rajeev Prasad
thanks, that was the quickest resolve for me on this LIST ever. thank you! From: Kenneth Wolcott To: Rajeev Prasad Cc: perl list Sent: Tuesday, November 22, 2011 2:35 PM Subject: Re: module is installed but getting error On Tue, Nov 22, 2011 at 12:31, Raj

Re: module is installed but getting error

2011-11-22 Thread Kenneth Wolcott
On Tue, Nov 22, 2011 at 12:31, Rajeev Prasad wrote: > getting this error: > > Can't locate Http/Cookies.pm in @INC (@INC contains: /etc/perl > /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 > /usr/local/lib/site_

module is installed but getting error

2011-11-22 Thread Rajeev Prasad
getting this error: Can't locate Http/Cookies.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./testscript.pl line 7. module was installed at: #

Re: getting variables defined from file

2011-11-22 Thread Jim Gibson
On 11/22/11 Tue Nov 22, 2011 10:25 AM, "Noah" scribbled: > HI list, > > Is there an easy way to get variables defined from another file? > specifically I have a series of scalar, array, and hash variables in an > external file. How can I use those variables defined and used in the > main perl

Re: getting variables defined from file

2011-11-22 Thread Shawn H Corey
On 11-11-22 01:25 PM, Noah wrote: Is there an easy way to get variables defined from another file? specifically I have a series of scalar, array, and hash variables in an external file. How can I use those variables defined and used in the main perl program? See: perldoc -f use perldoc -f requ

getting variables defined from file

2011-11-22 Thread Noah
HI list, Is there an easy way to get variables defined from another file? specifically I have a series of scalar, array, and hash variables in an external file. How can I use those variables defined and used in the main perl program? Cheers, Noah -- To unsubscribe, e-mail: beginners-unsubs

Re: best module to download files from https

2011-11-22 Thread Shawn H Corey
On 11-11-21 11:09 PM, Rajeev Prasad wrote: what would be the best module to download a file from anhttps://url ? I am trying to download some files over secured website and am willing to try the most correct (no overkill) module for the job. WWW::Mechanize is designed for stateful web apps.