Re: splitting strings

2006-08-30 Thread Hien Le
On Aug 30, 2006, at 3:42 AM, Dr.Ruud wrote: Aaargh, I was suddenly mixing up split /()/ and /()/g. I really shouldn't post anymore without testing. Thank you all for the clarifications regarding split(). I should pay more attention when I read the documentation (or get more sleep). -Hien.

Re: Print to new file for each results

2006-08-30 Thread Ken Foskey
On Wed, 2006-08-30 at 00:16 -0400, Ron McKeever wrote: I am tring to use part of someones elses code that creates a data file which prints out like this: ip|result|deptA|data ip|result|deptB|data ip|result|deptC|data If you can ignore efficiency (not run very often...) then you can

Re: Totally lost - need a starting point

2006-08-30 Thread Helen
I fixed the missing quotation and still no joy. Is there another way of indicating an expect script? - Original Message - From: Tom Phoenix [EMAIL PROTECTED] To: Helen [EMAIL PROTECTED] Cc: Beginners List beginners@perl.org Sent: Tuesday, August 29, 2006 3:55 PM Subject: Re: Totally lost

RE: replace multiple tokens

2006-08-30 Thread Moon, John
Thank you Robin John for the help Jwm... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Perl-mysql

2006-08-30 Thread Manne, Siva Chaitanya Prasad
Hi, I would like to connect to a database stored at linux machine from my Windows machine. But I am unable to connect to the mysql server. Please help me regarding this issue.

Re: Perl-mysql

2006-08-30 Thread jm
first, sharing the error message you get when trying to connect will help isolate the actual cause of the problem. second, getting rid of all the extraneous whitespace in your code fragment will help in reading the code. as for possible causes of the error: 1. DBI-connect syntax may be

Perl-mysql

2006-08-30 Thread Manne, Siva Chaitanya Prasad
Hi, I would like to connect to a database stored at linux machine from my Windows machine. But I am unable to connect to the mysql server. The error I am getting is DBI connect('employee:xxx.xxx.xxx.xx','root',...) failed: Unknown MySQL server host 'xxx.xxx.xxx.xx' (11001) at

Re: Totally lost - need a starting point

2006-08-30 Thread Randal L. Schwartz
Helen == Helen [EMAIL PROTECTED] writes: Helen I fixed the missing quotation and still no joy. Helen Is there another way of indicating an expect script? What kind of processing do you want from the browser when it gets an unknown mime type of text/exp? Your code looks like you just

Re: Perl-mysql

2006-08-30 Thread jm
On 8/30/06, Manne, Siva Chaitanya Prasad [EMAIL PROTECTED] wrote: Hi, I would like to connect to a database stored at linux machine from my Windows machine. But I am unable to connect to the mysql server. The error I am getting is DBI

Re: Totally lost - need a starting point

2006-08-30 Thread Helen
Ok I am starting from scratch again reading the manual more completely. I am just running out of time on my deadline. Helen - Original Message - From: Randal L. Schwartz merlyn@stonehenge.com To: beginners@perl.org Sent: Wednesday, August 30, 2006 11:16 AM Subject: Re: Totally lost -

Re: Totally lost - need a starting point

2006-08-30 Thread Randal L. Schwartz
Helen == Helen [EMAIL PROTECTED] writes: Helen Ok Helen I am starting from scratch again reading the manual more completely. I am Helen just running out of time on my deadline. As we say on freenode #perl, Learn or Hire. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

Need some help filtering thru results

2006-08-30 Thread Mike Blezien
Hello, We need to grab some data from a webpage fetch via the LWP module. This is the coding and the $resultdata below, need to regrex out various data, indicated by the [ ] brackets... see below for further explainations. My regrex is not very strong and need to some help figuring out the

general subroutine question

2006-08-30 Thread Derek B. Smith
All, Is there a commonly known way or method to limit the number of arguments that a subroutine can store or pass? thank you derek __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To

Re: general subroutine question

2006-08-30 Thread D. Bolliger
Derek B. Smith am Mittwoch, 30. August 2006 19:56: All, Is there a commonly known way or method to limit the number of arguments that a subroutine can store store where? or pass? pass to what? Did you mean: Is there a way for a subroutine to react to a call with to many arguments?

Re: general subroutine question

2006-08-30 Thread Derek B. Smith
store where? or pass? pass to what? Did you mean: Is there a way for a subroutine to react to a call with to many arguments? sub accept_max_5_arguments { die 'too many arguments!' if @_ 5; } sub accept_max_x_arguments { # apart from the first my $maxargs=shift;

RE: general subroutine question

2006-08-30 Thread Christian, Ed
Is there a commonly known way or method to limit the number of arguments that a subroutine can store or pass? perldoc perlsub Look there for Prototypes. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: general subroutine question

2006-08-30 Thread Adriano Ferreira
On 8/30/06, Derek B. Smith [EMAIL PROTECTED] wrote: Why is it so many people on the list are sarcastic??? Many enjoy being that way. Some enjoy helping people at this list and others, but get tired sometimes and forget they can only ignore what they thought to be a not-so-clear question and

Re: general subroutine question

2006-08-30 Thread D. Bolliger
Derek B. Smith am Mittwoch, 30. August 2006 20:44: store where? or pass? pass to what? Did you mean: Is there a way for a subroutine to react to a call with to many arguments? sub accept_max_5_arguments { die 'too many arguments!' if @_ 5; } sub

Re: general subroutine question

2006-08-30 Thread Derek B. Smith
--- D. Bolliger [EMAIL PROTECTED] wrote: Derek B. Smith am Mittwoch, 30. August 2006 20:44: store where? or pass? pass to what? Did you mean: Is there a way for a subroutine to react to a call with to many arguments? sub accept_max_5_arguments { die 'too

New and Need Help

2006-08-30 Thread Timothy Place
Hello all, my name is Tim and I have a website that I would like to get some help with, after transferring the files from one Hosting Service to another, some of the code doubled itself and when I went to remove it it really screwed my site up, I am not a PERL Person, although I am learning to

RE: Need some help filtering thru results

2006-08-30 Thread Charles K. Clarkson
Mike Blezien wrote: : My regrex is not very strong and need to some help figuring : out the best way to do this. I don't use regular expressions to parse HTML. I generally use HTML::TokeParser. The documentation is pretty good and I can step through the markup the same way I read it. HTH,

RE: Totally lost - need a starting point

2006-08-30 Thread Charles K. Clarkson
Helen wrote: : I am starting from scratch again reading the manual more : completely. I am just running out of time on my deadline. Break down your task into small pieces and solve for those pieces. The first piece I can see is running an Expect script from a perl program. Do you know how to