Re: weird regexness

2001-12-06 Thread Simon Wistow
On Thu, Dec 06, 2001 at 10:15:30AM +, [EMAIL PROTECTED] said: > Why does: > if ($a =~ mmnipm) { > do what it does, and give no warnings? Because it's exactly the same as doing m!nip! - you've just used 'm' as the delimiter character. it's matched on the 'nip' not the mmnipm. I think anywa

Re: weird regexness

2001-12-06 Thread Sue Spence
[EMAIL PROTECTED] wrote: > > Why does: > > #!/usr/local/bin/perl -w > > use strict; > use warnings; > > my $a = "wibble mmnipm"; > > if ($a =~ mmnipm) { > print "match\n"; > } else { > print "no match\n"; > } > > do what it does, and give no warnings? > Ummm well with m you get to

RE: weird regexness

2001-12-06 Thread Ivor Williams
Michael, $a ~= mmnipm; The first m is 'match' and is using the letter m as a delimiter. equivalent to $a =~ /nip/; or $a =~ m(nip); This is syntactically valid. Why should this give a warning? Ivor. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 06 De

RE: weird regexness

2001-12-06 Thread Scottow Adrian - adscot
Hello, I get errors (under perl 5.005_02) about barewords when I run the following: but if I put a space between the first and the second m in the regex then things appear to work without any errors. Michael wrote: #!/usr/local/bin/perl -w use strict; my $a = "wibble mmnipm"; if ($a =~ mm

RE: weird regexness

2001-12-06 Thread Ivor Williams
Yep, definitely wierd! I have made a mod to the program to clarify. #!/usr/local/bin/perl -w use strict; use warnings; my $a = "wibble mmnipm"; if ($a =~ mmnipm) { print "match '$&'\n"; } else { print "no match\n"; } This shows that it is definitely matching on mmnipm not nip. I'm r

Re: weird regexness

2001-12-06 Thread Cross David - dcross
mstevens said: > Why does: > > #!/usr/local/bin/perl -w > > use strict; > use warnings; > > my $a = "wibble mmnipm"; > > if ($a =~ mmnipm) { > print "match\n"; > } else { > print "no match\n"; > } > > do what it does, and give no warnings? >From perlop (section on binding operators): "If

books for sale

2001-12-06 Thread Dave Hodgkinson
Clearout time... The Eagle Book (the mod_perl one) £20 (US import!) XML in a nutshell £15 Network Programming with Perl £25 Linux Firewalls (New Riders)£20 Programming Web Graphics with GNU s/w £15 The XSLT O'Reilly (kidding!) The cluetr

Re: weird regexness

2001-12-06 Thread Sue Spence
[EMAIL PROTECTED] wrote: > > > my $a = "wibble mmnipm"; > > > > > > if ($a =~ mmnipm) { > > > print "match\n"; > > > } else { > > > print "no match\n"; > > > } > > > > > > > Ummm well with m you get to pick your pattern delimiters. So I don't see > > why any warnings should be generated, u

Re: weird regexness

2001-12-06 Thread Richard Clamp
On Thu, Dec 06, 2001 at 10:21:53AM +, Simon Wistow wrote: > On Thu, Dec 06, 2001 at 10:15:30AM +, [EMAIL PROTECTED] said: > > Why does: > > if ($a =~ mmnipm) { > > do what it does, and give no warnings? > > Because it's exactly the same as doing m!nip! - you've just used 'm' as > the deli

Re: weird regexness

2001-12-06 Thread Simon Wistow
On Thu, Dec 06, 2001 at 10:36:28AM +, Richard Clamp said: > Change $a, think again. I realised shortly afterwards. I didn't bother correcting because everybody else had mentioned it and I'm secure in my own programming crapness. But thanks for pointing it out.

J2ME

2001-12-06 Thread Simon Wistow
... makes me want to smoke crack. THERE'S SO MUCH FRICKIN' OVERHEAD JUST TO GET IT TO WORK. You have to compile and preverify and build the jar file and update the jad file with the jar size and keep a maifest and jad file and resource files and just to get hello world on screen there's 2 or

Re: weird regexness

2001-12-06 Thread Sue Spence
Simon Wistow wrote: > > On Thu, Dec 06, 2001 at 10:36:28AM +, Richard Clamp said: > > Change $a, think again. > > I realised shortly afterwards. I didn't bother correcting because > everybody else had mentioned it and I'm secure in my own programming > crapness. But thanks for pointing it ou

Re: J2ME

2001-12-06 Thread Tom Insam
On Thu, Dec 06, 2001 at 11:50:57AM +, Simon Wistow wrote: > ... makes me want to smoke crack. > > > THERE'S SO MUCH FRICKIN' OVERHEAD JUST TO GET IT TO WORK. Don't hold back. Tell us how you /really/ feel. Tom/Jerakeen

Beer

2001-12-06 Thread Roger Burton West
For anyone who's interested in real ale: the Stratford (Pig's Ear) beer festival is on until Saturday. It's in the old town hall, http://www.streetmap.co.uk/streetmap.dll?G2M?X=538914&Y=184296&A=Y&Z=1 , and was (on Tuesday) quite a lot of fun. I'll probably be there tomorrow and on Saturday. Roge

[PATCH] Re: weird regexness

2001-12-06 Thread Robin Houston
--- op.c.orig Thu Dec 6 12:08:38 2001 +++ op.cThu Dec 6 12:14:57 2001 @@ -2055,6 +2055,13 @@ desc, sample, sample); } +if (right->op_type == OP_CONST && + cSVOPx(right)->op_private & OPpCONST_BARE && + cSVOPx(right)->op_private & OPpCONST_STRICT) +

Re: weird regexness

2001-12-06 Thread Sue Spence
[EMAIL PROTECTED] wrote: > > We were talking about the desirability of using alternative delimiters > to reduce escaping, and for some reason the obvious silly case came > up... I pestered Dave C for a reference for the m\s+\wstuff\w thing, and he pointed me to a node on http://www.perlmonks.org

Re: J2ME

2001-12-06 Thread Chris Devers
On Thu, 6 Dec 2001, Simon Wistow wrote: > THERE'S SO MUCH FRICKIN' OVERHEAD JUST TO GET IT TO WORK. Yes! I spent the last week trying to get Tomcat to work, and it was nothing but an exercise in pain & frustration. Each element had a series of dependencies that had to be met, possibly includin

Re: J2ME

2001-12-06 Thread Dave Hodgkinson
Chris Devers <[EMAIL PROTECTED]> writes: > And people say setting up mod_perl is a pain in the butt. Hah! The RPM for RH7.1 "just worked". As did JBoss as far as I could tell. Oh, and a "Hello World" JSP was pretty brisk too. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkins

Re: J2ME

2001-12-06 Thread Chris Devers
On 6 Dec 2001, Dave Hodgkinson wrote: > Chris Devers <[EMAIL PROTECTED]> writes: > > > And people say setting up mod_perl is a pain in the butt. Hah! > > The RPM for RH7.1 "just worked". As did JBoss as far as I could tell. Well it didn't nearly get that far under Solaris 2.6, Java 1.2.3 or so

Re: J2ME

2001-12-06 Thread Jonathan Stowe
On Thu, 6 Dec 2001, Chris Devers wrote: > > On Thu, 6 Dec 2001, Simon Wistow wrote: > > > THERE'S SO MUCH FRICKIN' OVERHEAD JUST TO GET IT TO WORK. > > Yes! I spent the last week trying to get Tomcat to work, and it was > nothing but an exercise in pain & frustration. > I would recommend using Ap