Perl Syntax

Kevin C. Krinke kckrinke-eqjHHVKjh9GttCpgsWEBFlaTQe2KTcn/ at public.gmane.org
Wed May 25 23:02:45 UTC 2005


On Wed, 2005-05-25 at 17:18 -0400, Kevin C. Krinke wrote:
> All of the following work with strict:
> 
>   $hash{KEY}
>   $hash{'KEY'}
>   $hash{"KEY"}
>   %hash = ( KEY => "value" );
>   some_function( ARG => "arg" );
>   sub SIMPLE_PI => 4.14;

doh...

sub constant SIMPLE_PI => 4.14;

>   my $pi = SIMPLE_PI;
> 
> Note that these are just examples and won't work as is...

-- 
Kevin C. Krinke <kckrinke-eqjHHVKjh9GttCpgsWEBFlaTQe2KTcn/@public.gmane.org>
Open Door Software Inc.

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list