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
[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
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
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
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
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
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
[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
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
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.
... 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
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
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
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
--- 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)
+
[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
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
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
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
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
20 matches
Mail list logo