Re: perl script calls batch file

2006-08-04 Thread Dr.Ruud
Shourya Sengupta schreef: > Ruud: >> Shourya: >>> My perl program calls a batch file on a remote machine. >>> Now my question is how to return a value from that batch script and >>> how to grab it in the perl file? >> >> What kind of value? > > It's the value of a variable generated in the batch s

Re: smash and grab

2006-08-04 Thread D. Bolliger
Rob Dixon am Freitag, 4. August 2006 16:54: > Tim Wolak wrote: > > I have modified the code however its still not writting to the file > > Not sure what is going on, I have tried different ideas to get it to > > pint to the file but so far no go. Does anyone have any ideas? > > > > #!/usr/bin/

Re: Regex...HTML::Parser...Getting webpage data?

2006-08-04 Thread Mumia W.
On 08/03/2006 01:27 PM, Wesley Bresson wrote: I'm pretty new to Perl, my past experience has been in modifying other peoples code in order to do what I want it to do but now I'm trying to write my own to do a specific task that I can't find code for and am having issues. I am trying to retrieve

Re: reg-ex match - reverse looking assertion?

2006-08-04 Thread Mumia W.
On 08/04/2006 04:26 AM, Paul Beckett wrote: I'm trying to pattern match the beginning of a SQL string like: INSERT INTO `rwikiobject` VALUES ('0b5e02f308c5341d0108fca900670107','2006-03-06 23:36:41','/site/ec07580d-1c66-469f-80be-c0afd616cedf/alembert, d \'','/site/ec07580d-1c66-469f-80be-c0afd61

RE: reg-ex match - reverse looking assertion?

2006-08-04 Thread Beckett Paul Mr \(ITCS\) s167
Tom, My data is coming from a trusted source (dumped from one of my databases). Presumably even if someone put something evil like unlink into a field in my database, mysqldump will have escaped any apostophes etc, so I guess in this specific situation it should be safe. Thanks for the warnin

Re: reg-ex match - reverse looking assertion?

2006-08-04 Thread Tom Phoenix
On 8/4/06, Rob Dixon <[EMAIL PROTECTED]> wrote: The code below grabs the contents of the SQL string between (and including) the first '(' and the last ')'. It then calls eval() to process it Please don't use the evil eval for this. You're using a flamethrower to light candles. Slip the string

Re: smash and grab

2006-08-04 Thread Rob Dixon
Tim Wolak wrote: I have modified the code however its still not writting to the file Not sure what is going on, I have tried different ideas to get it to pint to the file but so far no go. Does anyone have any ideas? #!/usr/bin/perl -w use strict; use warnings; my $logfile = '/var/log/mes

Re: Regex...HTML::Parser...Getting webpage data?

2006-08-04 Thread Rob Dixon
Wesley Bresson wrote: > > I'm pretty new to Perl, my past experience has been in modifying other > peoples code in order to do what I want it to do but now I'm trying to > write > my own to do a specific task that I can't find code for and am having > issues. I am trying to retrieve data from a we

Re: smash and grab

2006-08-04 Thread Tim Wolak
On Fri, 2006-08-04 at 14:46 +0200, D. Bolliger wrote: > Tim Wolak am Freitag, 4. August 2006 14:07: > > Hello Tim > > > On Thu, 2006-08-03 at 15:26 -0700, John W. Krahn wrote: > > > Rob Dixon wrote: > > > > Tim Wolak wrote: > > > >> if($box =~ m/"$tim"/){ >

Re: reg-ex match - reverse looking assertion?

2006-08-04 Thread Rob Dixon
Paul Beckett wrote: > > I'm trying to pattern match the beginning of a SQL string like: > INSERT INTO `rwikiobject` VALUES > ('0b5e02f308c5341d0108fca900670107','2006-03-06 > 23:36:41','/site/ec07580d-1c66-469f-80be-c0afd616cedf/alembert, d > \'','/site/ec07580d-1c66-469f-80be-c0afd616cedf' > > My

Re: smash and grab

2006-08-04 Thread D. Bolliger
Tim Wolak am Freitag, 4. August 2006 14:07: Hello Tim > On Thu, 2006-08-03 at 15:26 -0700, John W. Krahn wrote: > > Rob Dixon wrote: > > > Tim Wolak wrote: > > >> if($box =~ m/"$tim"/){ > > > > > > Do you intend the quotes? If the lines from the original ho

Re: Downloadable Perl Manual

2006-08-04 Thread Dr.Ruud
Wesley Bresson schreef: > andrewmchorney: [don't top-post] >> Is there a downloadable manual for perl? I would like to download the >> manual onto my laptop before I go on vacation. I really want to avoid >> bringing extra books. > > http://learn.perl.org/library/ > I've downloaded and been read

Re: smash and grab

2006-08-04 Thread Tim Wolak
On Thu, 2006-08-03 at 15:26 -0700, John W. Krahn wrote: > Rob Dixon wrote: > > > > Tim Wolak wrote: > >> > >> if($box =~ m/"$tim"/){ > > > > Do you intend the quotes? If the lines from the original hosts.deny file > > (in @boxes) have IP addresses in quotes

Re: book to learn perl

2006-08-04 Thread Shourya Sengupta
Hi Irfan, If somebody is a beginner (in true sense) in perl the following link will be really useful. Check it out. http://www.emu.edu.tr/english/facilitiesservices/computercenter/bookslib /Teach%20Yourself%20Perl%205%20in%2021%20Days%2C%20by%20David%20Till%2C% 20Second%20Edition/ Regards, Shour

RE: perl script calls batch file

2006-08-04 Thread Shourya Sengupta
It's the value of a variable generated in the batch script. By the way does batch script have any kind of return statement? -Original Message- From: Dr.Ruud [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 4:44 PM To: beginners@perl.org Subject: Re: perl script calls batch file "S

Re: perl script calls batch file

2006-08-04 Thread Dr.Ruud
"Shourya Sengupta" schreef: > My perl program calls a batch file on a remote machine. > Now my question is how to return a value from that batch script and > how to grab it in the perl file? What kind of value? [Signature separator missing. Get rid of any garbage tail, such as Disclaimers, befo

Regex...HTML::Parser...Getting webpage data?

2006-08-04 Thread Wesley Bresson
I'm pretty new to Perl, my past experience has been in modifying other peoples code in order to do what I want it to do but now I'm trying to write my own to do a specific task that I can't find code for and am having issues. I am trying to retrieve data from a webpage, say http://www.apmex.com/sh

Re: Downloadable Perl Manual

2006-08-04 Thread Wesley Bresson
http://learn.perl.org/library/ I've downloaded and been readying through the "Beginning Perl" title on the top of the page, I guess it depends what type of Perl manual you want <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello Is there a downloadable manual for perl? I would

reg-ex match - reverse looking assertion?

2006-08-04 Thread Paul Beckett
I'm trying to pattern match the beginning of a SQL string like: INSERT INTO `rwikiobject` VALUES ('0b5e02f308c5341d0108fca900670107','2006-03-06 23:36:41','/site/ec07580d-1c66-469f-80be-c0afd616cedf/alembert, d \'','/site/ec07580d-1c66-469f-80be-c0afd616cedf' My expression so far looks like: my ($

Re: Web page manipulation

2006-08-04 Thread Rob Dixon
Eric Krause wrote: > > I am new to perl and I am trying to write a script that will allow me to > automate some tasks that I do every day on the same web pages. Can > anyone give me some quick examples to get web page data and pass data > back to the pages? > > Sorry if this question is lame, I am

xml-file processing

2006-08-04 Thread Dr. Claus-Peter Becke
dear members, i have a bundle of questions and hope that anybody is patient enough to listen to. i'm processing xml-files with perl. i'm using xml::dom and i'm learning about processing xml-files with perl by E.Ray's/J.McIntosh's XML&Perl book. i'm reading the german edition. they offer a f