On Jun 23, [EMAIL PROTECTED] said:
>SRED. SREDNE
>SEV. SEVERN
># Match it at beginning of line
>$cgname =~ s/^SRED\.(?=[\W\s\-\d]+)/SREDNE:/g ;
Three things -- the + modifier on the [...] isn't needed, you don't need
to put \s and - in a character class you've already put \W in, and the /g
modi
Subject: Re: There has to be a
way to do this
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Scott E Robinson) writes:
>Is there a way in Perl to read the abbreviation
>dicitionary (the tab-delimited list), generate the code, insert it into the
>right subroutine, and start executing the program, all in one script?
perldoc -f eval
Also t
process, to make it more end-user-friendly. There has to be a way to do
this with Perl.
The script uses a "dictionary" of abbreviations to aid its matching. The
abbreviations are implemented as a series of substitutions with the "s"
operator. I have a Perl script which