WWW::Mechanize question

2006-01-17 Thread Ing. Branislav Gerzo
Hi all there, I'd like to use %subj% with caching options. I know how to use Cache::File; or WWW::Mechanize::Cached. Problem comes, when I want to cache webpage with forms (POST). I decide not to use WWW::Mechanize::Cached, because it uses as key given URL (as I decoded that from source). I

retrieving from opendbm

2006-01-17 Thread Anders Stegmann
Hi! Why doesn't this work? use strict; use warnings; my %result_hash = qw(foo bar); dbmopen(%result_hash, BB, 0666); dbmclose(%result_hash); dbmopen(%result_hash, BB, 0666); while (my ($key,$val) = each %result_hash) { print $key,\n; } dbmclose(%result_hash);

Re: WWW::Mechanize question

2006-01-17 Thread Randal L. Schwartz
Ing == Ing Branislav Gerzo [EMAIL PROTECTED] writes: Ing Problem comes, when I want to cache webpage with forms (POST). This is strange. POST requests are not necessarily idempotent, and this is why caches never cache them. Perhaps you want to turn these POSTs into GETs instead, if you know

filehandle question

2006-01-17 Thread radhika
Hi, Can someone tell me what is going on in this peice of code? Especially, line 409. --code start-- 405my $fh; 406my $txtfile = $file-fileName(); 407open $fh, $txtfile; 408my $plain_text = ''; 409$plain_text .= $_ foreach ($fh); close $fh; --code end-- I keep getting

Re: filehandle question

2006-01-17 Thread Shawn Corey
radhika wrote: Hi, Can someone tell me what is going on in this peice of code? Especially, line 409. --code start-- 405my $fh; 406my $txtfile = $file-fileName(); 407open $fh, $txtfile; open $fh, $txtfile or die cannot open $txtfile: $!\n; 408my $plain_text = ''; 409

Re: retrieving from opendbm

2006-01-17 Thread Bob Showalter
Anders Stegmann wrote: Hi! Why doesn't this work? Aargh! *Please* see http://perl.plover.com/Questions4.html You're expecting us to read your mind, so here goes... use strict; use warnings; my %result_hash = qw(foo bar); dbmopen(%result_hash, BB, 0666); BB needs to be

RE: filehandle question

2006-01-17 Thread Charles K. Clarkson
# (Prematurely?) declare lexical variable 405 my $fh; # Get file name from the $file object. 406 my $txtfile = $file-fileName(); # Open file using lexical variable # declared earlier for file handle. # Do not test file opening for success. 407

Re: WWW::Mechanize question

2006-01-17 Thread Brano Gerzo
Randal L. Schwartz [RLS], on , , 2006 at 09:01 (-0800) contributed this to our collective wisdom: Ing Problem comes, when I want to cache webpage with forms (POST). RLS This is strange. POST requests are not necessarily idempotent, and this is RLS why caches never cache them. Perhaps you want

Win32::TieRegistry problem

2006-01-17 Thread OXx
Hello I have a problem with this module. My script does not work with all pcs . In fact when I execute it on my computer I have no problem but in an other one I have this error: *Can't call method GetValue on an undefined value* An extract of my script: $Registry-Delimiter(/);

RE: Win32::TieRegistry problem

2006-01-17 Thread Timothy Johnson
Is there a value called DisplayName in every key under Uninstall? My guess is that you will find on the computers where this fails that there is a key that is incomplete, either from a partial uninstall or a badly installed program. By the way, I don't think you actually need to call the

Re: retrieving from opendbm

2006-01-17 Thread Tom Phoenix
On 1/17/06, Anders Stegmann [EMAIL PROTECTED] wrote: Why doesn't this work? dbmopen(%result_hash, BB, 0666); 'Cause it's not Perl. :-) What's BB supposed to be? The second parameter to dbmopen is a filename, so that should be a string. (I think you're confusing that with doing something like

Help Needed

2006-01-17 Thread Rakesh Mishra
Hello folks I am thinking to built port scanner in perl. for port scanning I am using SYN packet. Can any body suggest some online document or mannuals for this. with regards Rakesh

Re: Help Needed

2006-01-17 Thread Chris Devers
On Wed, 18 Jan 2006, Rakesh Mishra wrote: Hello folks I am thinking to built port scanner in perl. for port scanning I am using SYN packet. Can any body suggest some online document or mannuals for this. Can someone? Probably. Did you try searching? Where? What did you find? Did you find