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!
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
*? = 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)
+
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
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
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
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
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
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
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
10 matches
Mail list logo