Re: WWW::Mechanize java navigation

2005-02-24 Thread rnmscott
Quoting Peter Rabbitson <[EMAIL PROTECTED]>: > > Whereas my original question was: > > What can I use that would be as functional as WWW::Mechanize while at the > same time compatible with the site mentioned above. > > -- I'd be interested in an answer to this too, as I have a similar sort of

Appending in between some file

2005-02-24 Thread Anish Kumar K.
Hi I wanted to append some line in between a text file. So what I tried is with the seek command I tried moving the pointer and then do appeding, but for some reason it was not getting appended. I know there are ways to make this task possible. I am afraid abot the memory consumption so I ha

Re: pattern matching

2005-02-24 Thread Ing. Branislav Gerzo
Aaron Reist [AR], on Friday, February 25, 2005 at 01:58 (-0500) typed the following: AR> The program will check for two types of usernames - the first is #xxx# AR> (9 alphanumeric characters. beginning and ending with a number)the AR> second is XxX (11 alphanumeric charactors, the

Re: WWW::Mechanize java navigation

2005-02-24 Thread Chris Devers
On Thu, 24 Feb 2005, Peter Rabbitson wrote: > What can I use that would be as functional as WWW::Mechanize while at > the same time [Javascript aware]. To do this properly, you need to have a proper Javascript engine. I'm not aware of any Javascript hooks for Perl, but then, all modern web bro

pattern matching

2005-02-24 Thread Aaron Reist
Hello everyone, not quite sure if what I m trying to do is possible, but here is the basic idea: Currently I have a simple program takes a username from a html textbox and checks against a list of values in a notepad document. If the name is found the user is given access, if not they are prom

Re: WWW::Mechanize java navigation

2005-02-24 Thread Todd W
"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: > > > <---snip whole bunch of misunderstaning---> > > > You have your answer then.. I guess. > > >From FAQ=WWW::Mechanize; > > > > How can I get

Testing question

2005-02-24 Thread Robert
I am trying to wrap my head around testing. What exactly do you test? I do mostly scripts for admin stuff and not modules. My scripts do things like run a program and then email the generated log file to me. Would you test that? What fits the criteria for "it needs a test"? Thanks, Robert --

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
- Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 3:45 PM Subject: Re: WWW::Mechanize java navigation On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: <---snip whole bunch of misunderstaning---> You have your answer

Re: Looking for a mirror script (sorta)

2005-02-24 Thread Chris Devers
On Thu, 24 Feb 2005, Dan Fish wrote: > I'm looking for a script that I can set up to periodically poll an ftp site, > download all available files in a specified directory, and then delete the > remote files. (Sorta like a mirror script with remote delete) Have you looked at ncftp? The `ncftpget

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
- Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 3:02 PM Subject: Re: WWW::Mechanize java navigation use WWW::Mechanize; use Crypt::SSLeay; my $m_crawl = WWW::Mechanize->new; $m_crawl->get ('http://mymerchantview.net'); $m_crawl->fol

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
Have you installed Crypt::SSLeay for https:// ? Could you print the header at least with your code? - Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 11:45 AM Subject: WWW::Mechanize java navigation Hello list. I had very good luck us

RE: Upgrading from Perl 5.6 to Perl 5.8

2005-02-24 Thread Dan Fish
> > For now, just accept it as one of Perl's quirks. > > Kind of like Java 1.4.5 being "Java Five", or whatever it is ... :-) > > Or maybe like Solaris 9 = Solaris 2.9 = SunOS 5.9 :-) Gotta hand it to them Sun folks... Always keeping us guessing -Dan -- To unsubscribe, e-mail: [EMAIL

Looking for a mirror script (sorta)

2005-02-24 Thread Dan Fish
I'm looking for a script that I can set up to periodically poll an ftp site, download all available files in a specified directory, and then delete the remote files. (Sorta like a mirror script with remote delete) AFAIK you can't delete remote files with mirror-2.9, which seemed to be the case wi

Re: WWW::Mechanize java navigation

2005-02-24 Thread Peter Rabbitson
On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: <---snip whole bunch of misunderstaning---> > You have your answer then.. I guess. > >From FAQ=WWW::Mechanize; > > How can I get WWW::Mechanize to execute this JavaScript? > You can't. JavaScript is entirely client-based, and

Re: standardising spellings

2005-02-24 Thread Ron Wingfield
- Original Message - From: Graeme St. Clair To: beginners@perl.org Sent: Thursday, February 24, 2005 2:24 PM Subject: RE: standardising spellings -Original Message- From: Peter Rabbitson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 2:01 PM To

Re: WWW::Mechanize java navigation

2005-02-24 Thread Peter Rabbitson
use WWW::Mechanize; use Crypt::SSLeay; my $m_crawl = WWW::Mechanize->new; $m_crawl->get ('http://mymerchantview.net'); $m_crawl->follow_link (n => '1'); print $m_crawl->content; the above code yields: 501 Protocol scheme 'javascript' is not supported On Thu, Feb 24, 2005 at 02:20:29PM -0600

RE: standardising spellings

2005-02-24 Thread Graeme St. Clair
-Original Message- From: Peter Rabbitson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 2:01 PM To: beginners@perl.org Subject: Re: standardising spellings On Thu, Feb 24, 2005 at 06:01:50PM -, Dermot Paikkos wrote: > Hi, > > I have a list of about 650 names (a small

Re: standardising spellings

2005-02-24 Thread Peter Rabbitson
On Thu, Feb 24, 2005 at 06:01:50PM -, Dermot Paikkos wrote: > Hi, > > I have a list of about 650 names (a small sample is below) that I > need to import into a database. When you look at the list there are > some obvious duplicates that are spelt slightly differently. I can > rationalize so

standardising spellings

2005-02-24 Thread Dermot Paikkos
Hi, I have a list of about 650 names (a small sample is below) that I need to import into a database. When you look at the list there are some obvious duplicates that are spelt slightly differently. I can rationalize some of the data with some simple substitutions but some of the data looks al

WWW::Mechanize java navigation

2005-02-24 Thread Peter Rabbitson
Hello list. I had very good luck using the WWW::Mechanize object for various automated data collectors until I stumbled over http://www.mymerchantview.net. As you can imagine the problems begin when I do my first ->follow_link after which the script blows with something about unsupported java. What

Re: Moving Directories containing files (something more tricky)

2005-02-24 Thread JupiterHost.Net
perldoc -f mkdir perldoc -f rename perldoc File::Path perldoc File::Copy Also see, File::Copy::Recursive :) quite nice and simple. HTH :) Lee.M - JupiterHost.Net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Including one perl script in another

2005-02-24 Thread bright true
Hello , just add this line it will inculde the file require 'config.pl'; On Thu, 24 Feb 2005 08:35:17 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Greetings > How do I include a script in another one? For instance. I have a script called > myscript.pl and I have a second one called co

Re: Moving Directories containing files (something more tricky)

2005-02-24 Thread Chris Devers
On Thu, 24 Feb 2005, Bastian Angerstein wrote: > I have a tricky problem, I have some (alot) directories containing > alot of files. I want to move the directory /xyz/123/ with all > containing files to /xyz/abc/123. Maybe I'm being dense, but doesn't that just mean mkdir /xyz/abc mv /xyz/

RE: printing output of ping command -- New question at bottom.

2005-02-24 Thread Tyson Sommer
> -Original Message- > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 23, 2005 2:50 PM > To: Perl Beginners > Subject: Re: printing output of ping command -- New question > at bottom. > > Tyson Sommer wrote: > > > > This might be a question for beginners-cg

Re: Moving Directories containing files (something more tricky)

2005-02-24 Thread Wiggins d'Anconia
Bastian Angerstein wrote: Hello there, I have a tricky problem, I have some (alot) directories containing alot of files. I want to move the directory /xyz/123/ with all containing files to /xyz/abc/123. The source directory does not (or should not) contain subdirectories. Does anybody have somethi

Re: Listing a Windows file, getting creation date

2005-02-24 Thread Wiggins d'Anconia
Please bottom post. And remember throwing a huge chunk of code at someone who is brand new probably isn't the best way for them to learn. *at least* explain what your code does, how, and why... http://danconia.org Manav Mathur wrote: use strict ; use warnings ; use File::find ; my %hash ; my %by

Re: Listing a Windows file, getting creation date

2005-02-24 Thread Wiggins d'Anconia
Bret Goodfellow wrote: Hi all, I am very new to Perl. I have had assembler and Rexx experience on a mainframe. I would like to be able to use Perl to list a directory, get the propeties of the files (eg. date created), and keep the newest 3. The reason I want to do this is because I am running a

RE: Listing a Windows file, getting creation date

2005-02-24 Thread Manav Mathur
use strict ; use warnings ; use File::find ; my %hash ; my %by_value ; find(sub{$hash{$_}=(stat $_)[9]},'/path/to/Udb/Backups') ; while (($key, $value) = each %hash) { push @{$by_value{$value}}, $key; } my @[EMAIL PROTECTED] {$a <=> $b} keys %by_value ; local $"="\n" ; print "@array[0..2]" ;

RE: printing output of ping command -- New question at bottom.

2005-02-24 Thread Tyson Sommer
> -Original Message- > From: Chris Devers [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 23, 2005 1:18 PM > To: Tyson Sommer > Cc: 'Perl Beginners List' > Subject: Re: printing output of ping command -- New question > at bottom. > > On Wed, 23 Feb 2005, Tyson Sommer wrote: > >

RE: :FTP problems

2005-02-24 Thread Bob Showalter
John wrote: > Hi all > > I tried to chroot the perl and when i am trying to run a Net::FTP > script > > I receive the error > > Net::FTP: Bad protocol 'tcp' > > Do you know what is going on? /etc/protocols doesn't exist in your chroot environment? -- To unsubscribe, e-mail: [EMAIL PROTECTE

Moving Directories containing files (something more tricky)

2005-02-24 Thread Bastian Angerstein
Hello there, I have a tricky problem, I have some (alot) directories containing alot of files. I want to move the directory /xyz/123/ with all containing files to /xyz/abc/123. The source directory does not (or should not) contain subdirectories. Does anybody have something for me ? Thanks, B

Net::FTP problems

2005-02-24 Thread John
Hi all I tried to chroot the perl and when i am trying to run a Net::FTP script I receive the error Net::FTP: Bad protocol 'tcp' Do you know what is going on?

Listing a Windows file, getting creation date

2005-02-24 Thread Bret Goodfellow
Hi all, I am very new to Perl. I have had assembler and Rexx experience on a mainframe. I would like to be able to use Perl to list a directory, get the propeties of the files (eg. date created), and keep the newest 3. The reason I want to do this is because I am running a UDB system that create

Re: Upgrading from Perl 5.6 to Perl 5.8

2005-02-24 Thread Wiggins d'Anconia
Chris Devers wrote: On Wed, 23 Feb 2005, Paul Ohashi wrote: [snip] Kind of like Java 1.4.5 being "Java Five", or whatever it is ... :-) Anyone on Solaris should be already :-)... Solaris 9 isn't that SunOS 5.9??? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman