Hi,
: Thank you so much for the awesome consise answer. The more I learn of
: Perl the more I too fall in love with it. Your answer was just what I
: was looking for. I've squirreled it away in a file along with a
: working example of the code for future reference.
Pleased to hear my answer has been squirreled...

And yes, Perl is a great language.
: Yes, as I understand from an exchange we had last week about the
: changes taking place in Perl 6. However, does that mean that even
: though they're going from doing it hands on to the use of operators
: isn't the underlying methodology still based in the regex as we now
: now them? it will just be happening more "under-the-covers" so to
: speak rather than the coder doing it by hand. In other words we'll
: call the operator and pass the params to the operator. Do I
: understand it correctly?
Not quite sure what you're getting at. I'm not a Perl 6 expert, just an interested follower of it's development, so maybe that's why. However, what I do know: Basically, the language we write regular expressions in is a kind of language of it's own within Perl. It is this language that is being drastically changed. So what we can do with regexes isn't really changing (other than we should be able to do more with them, I guess!). The changes affect the way our regexes will look. So:-
(?:something) #Non capturing cluster in Perl 5
[something] #Non capturing cluster in Perl 6 - shorter!
However, and I quote this from the 5th Apocalypse:-
"Some things stay the same: (...) captures text just as it did before, and the quantifiers *, +, and ? are also unchanged. The vertical bar | still separates alternatives. The backslash \ still protects the following character from its ordinary interpretation. The ? suffix character still does minimal matching. (Note that these are by far the most commonly used metacharacters, so many ordinary regexes will look nearly identical in Perl 5 and Perl 6.)"
Every regex will have the x modifier by defualt. So that means that whitespace is ignored and has to be specified explicitly, but also we can put comments in our regex easily.
So what for character classes? We now do them like this:-
<[...]>
In fact anything inside <...> is an assertion. One other cool thing is capturing directly to a variable. The following prints "ello".
my $x;
my $word = "hello";
$word =~ /h $x:=(.*)/;
print $x;
It's all in there somewhere...
http://dev.perl.org/perl6/apocalypse/5
: Oh, an I notice that you also use Dream Weaver. I was wondering if
: you could suggest a Linux equivalant for Dream Weaver. When I'm
: developing something it's not always convenient to have to reboot
: into XP just to fire up Dream Weaver.
I'm still looking for one myself. I've got a URL where there's a list of possibles back home, I'll see if I can dig it out tonight. Have to say Dreamweaver is one of the things I'd miss most in making the Windows -> Linux transition (I'm still playing with Linux at the mo as a desktop OS, but Mandrake 9 is excellent IMHO).
Best get back to stuff...
Jonathan
-------------------------------------------
Count your downloads:
http://www.downloadcounter.com/
And host your site:
http://www.incrahost.com/
Don't say I never give you anything...