Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] What is the most appropriate scripting language




On 1/16/07, Stephen J. Turnbull <stephen@example.com> wrote:
on.

> The only thing I like better in perl is the more natural syntax for
> regexes.

What are you referring to?  The "target ~= regex" notation?

exactly :

import re
p = re.compile('[a-z]+')
if p.match("some text"):
do_somthing()

in python vs :

if ( "some text" =~ /[a-z]+/ ) {
do_somthing();
}

in perl.

Ian
 



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links