[ale] Perl monks ?
Fletch
fletch at phydeaux.org
Wed May 1 15:13:34 EDT 2002
>>>>> "James" == James P Kinney, <James> writes:
James> On Wed, 2002-05-01 at 14:11, Mazukna, Thomas wrote:
>> 1. Is the following snippet a valid piece of Perl code?
>> s/[Tt]he\s/a/gis;
James> Only if it has a $variable ~= in front (unless in
James> commandline mode). Then it will substitute "a" for "The "
James> or "the "
No, it's perfectly valid. If you don't bind a specific
varible $_ will be used (as it is many places in perl when no explicit
arugment is given). See perldoc perlop.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
770 294-0820 (m) | U
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list