[ale] Perl monks ?

James P. Kinney III jkinney at localnetsolutions.com
Wed May 1 15:19:54 EDT 2002


I concede. I explicitly declare all variables so I never use the $_ by
it self. 

On Wed, 2002-05-01 at 15:13, Fletch wrote:
> >>>>> "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.
> 
-- 
James P. Kinney III   \Changing the mobile computing world/
President and CEO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



---
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