Beginning Perl is my choice as well, very basic, just right for a person
of humanist background like myself. It' s available online
http://www.perl.org/books/beginning-perl/
hf
petra
[EMAIL PROTECTED] pravi:
On Oct 7, 7:39 am, [EMAIL PROTECTED] (Dyana Wu) wrote:
On 07 Oct 2007, at 8:27 P
Sorry, tried all that with escaping - doesn't work either
???
> you may need the \Q for meta-character escape.
>
> for (keys %expan) {
> $sbl =~ s/\Q$_/$expan{$_}/g;
> }
>
> see also 'perldoc perlre' and search for '\Q'.
>
> 2007/8/27, Petr
Hi all,
I have a hash and some prose text and want my perl to identify the keys of
the hash in this text and replace them with the corresponding values of
the keys.
I tried the following
foreach (keys %expan) {
if ($sbl =~ m/$_/g) {
$sbl =~ s/$_/$expan{$_}/g;
}
}
but it doesn't seem to
Hi all,
I have a text with a lot of abbreviations in it and would like to
annotate them. I did it for the shorter ones with
$text =~ m/\b\w{0,3}[^IVX]\./g
and it works fine. But I would like to get the longer ones as well. The
trouble with the long strings ending with a full-stop is that the