simple query

2003-03-19 Thread mark sony
Hi Can anyone tell me what does $. in perl mean ? And also anyplace I will get references about these in quick time ie. a handbook type ? mark ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more!

Trying to block out BGCOLOR

2003-03-19 Thread WilliamGunther
I'm making something, and need to block out BGCOLOR attribute. The problem is, the BGCOLOR could be with or without quotation marks. This is the code I used: $article =~ s/ bgcolor=("?)(.*?)("?)//gi It doesn't work to my liking, and was hoping someone else had a better solution. William

RE: Problem with regular expressions!!!

2003-03-19 Thread Hanson, Rob
*? = 0 or more, non-greedy. Non-greeday meaning "as few as possible". $test = 'foobar foobar'; # matches "foobar foobar", as many of "." as possible. $test =~ /foo.*bar/; # matches "foobar", as few of "." as possible (in this case, none). $test =~ /foo.*?bar/; Also... + = 1 or more (greedy) +

Re: Problem with regular expressions!!!

2003-03-19 Thread Rob Benton
How does it translate? * = 0 or more of preceding char ? = 1 or 0 of preceding char *? = ??? On Tue, 2003-03-18 at 21:41, Michael Kelly wrote: > On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > > It looks odd to me b/c * and ? are both quantifiers... > > * and ? alone are both quan

RE: Good Perl cgi book?

2003-03-19 Thread DiGregorio, Dave
I really like the llama book d -Original Message- From: zentara [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 9:42 AM To: [EMAIL PROTECTED] Subject: Re: Good Perl cgi book? On Mon, 17 Mar 2003 17:30:44 -0500, [EMAIL PROTECTED] (Bob X) wrote: >What is the best book for a beg

Re: Perl Script wont run in cronjob

2003-03-19 Thread drieux
On Wednesday, Mar 19, 2003, at 04:04 US/Pacific, Glynn S. Condez wrote: [..] what should be the problem running on cronjob. both this doesnt work. */5 * * * * perl /path/to/pingscript */5 * * * * /path/to/perlscript one of the first questions out the shoot: what is the error message you get from

Re: Good Perl cgi book?

2003-03-19 Thread zentara
On Mon, 17 Mar 2003 17:30:44 -0500, [EMAIL PROTECTED] (Bob X) wrote: >What is the best book for a beginner to get started with on Perl and CGI? I would reccomend the Perl CD Bookshelf, 6 books in 1 on cd. It is nice because you can search it for little examples of code when you need it. Get versi

Perl Script wont run in cronjob

2003-03-19 Thread Glynn S. Condez
Hi All, I have a proble with my perl script to run in cronjob. When i run the script in shell like this it works #perl /path/to/perlscript or #./path/to/perlscript what should be the problem running on cronjob. both this doesnt work. */5 * * * * perl /path/to/pingscript */5 * * * * /path/to/per

Re: Problem with regular expressions!!!

2003-03-19 Thread Michael Kelly
On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > It looks odd to me b/c * and ? are both quantifiers... * and ? alone are both quantifiers, but *? is a non-greedy *. -- Michael [EMAIL PROTECTED] http://www.jedimike.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: searching for a string

2003-03-19 Thread Octavian Rasnita
Try: my $exp = "The lucky coin"; $/ = undef; open (FH, $file); my $content = ; close FH; if ($content =~ /$exp/sm) { print "The string was found"; } Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "mark sony" <[EMAIL PROTECTED]> To: <[EMAI