On Fri, 02 Jan 2004 15:25:04 -0800, GGarramuno wrote: > Simon Strandgaard <neoneye / adslhome.dk> wrote in message news:<pan.2004.01.02.19.24.35.766160 / adslhome.dk>... >> >> #begin /#end can tell the offset.. is that what you want ? >> > > Kind of. Those are what I call the building blocks. > > The differences are that: > a) That's an index that gets stored with the string variable, as if > it were an attribute of it. > b) It can also be set, like String#pos(number), so that any > further matches or substitutions begin from that position on (this is > somewhat akin to ruby's index()) How about #scan ? > c) It interacts with the \G flag of regular expressions. never seen \G before.. is that global ? >> It sound interesting, I like challenges (but i don't do perl). >> Can you show us some of the perl code which you are porting ? > > Well, you really don't want to look at it. It is a library written by > Damian Conway (one of Perl's top gurus and designers) and as such it > is brilliant. > But unless you've been coding perl for some years, it will more likely > look like part of an obfuscated code contest :) Agree on that, it looks obfuscated... but less than other perl modules I have seen. > Anyway, here it is: > http://www.cpan.org/modules/01modules.index.html > Module is: Getopt-Declare. I am curios to how its differ from GetoptLong ? -- Simon Strandgaard