Newbie queston on Perl and lex.

S

somedeveloper

Hi,

1. If my needs are only lexical scanning (and not compiler- and
interpretor-writing), and
2. If I'm proficient in Perl and Perl regular expressions,

would I ever need to learn a tool such as f/lex? Is there anything
that Perl REs cannot do easily/elegantly which f/lex can, for example?

Many thanks,
Some Developer.
 
S

somedeveloper

1. If my needs are only lexical scanning (and not compiler- and
interpretor-writing), and
2. If I'm proficient in Perl and Perl regular expressions,
would I ever need to learn a tool such as f/lex? Is there anything
that Perl REs cannot do easily/elegantly which f/lex can, for example?

I don't have the slightest idea. But I know an article that you may be
interested in:

http://www.perl.com/pub/a/2006/01/05/parsing.html

Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,

Michele, thanks! The article did give me an idea of what I guess I was
trying to know.

PS: Ran your signature program... it's cool! Hopefully, I'll be able
to decode it in near future... when I'm more comfortable with the
language.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top