[Bioperl-l] Re: [Bioperl-guts-l] [Bug 1670] PrimarySeq.pm -
Aaron J Mackey
amackey at pcbi.upenn.edu
Tue Aug 3 09:01:50 EDT 2004
On Tue, 3 Aug 2004 bugzilla-daemon at portal.open-bio.org wrote:
> Patch applied. By the way, there is no need to escape anything but a bracket
> within the brackets:
>> perl -e '$str = "?-.A"; $str =~ s/[-.?]//g; print $str,"\n";'
Not since you (happened to?) put the '-' first; but if anyone were to add
a character before it, an escaped '\-' would be necessary. And since
anywhere else in a regexp, escaping is required, it's not entirely bad
form to include them for clarity's sake.
Your friendly Perl coding style police,
More information about the Bioperl-l