perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <naz...@somewhere.com>
Subject Re: Subroutine problem
Date Tue, 08 Jun 2004 00:29:47 GMT
At 3:19 PM -0700 6/7/04, Nate Smith wrote:
>[$ sub month_cal $]
>
>[-
>   my ($y, $m) = @_;
>
>   my @months = qw('' January February March
>                April May June July
>                August September October
>                November December);

This declares a local variable for the scope of the [-

>    [$ foreach $dow @days $]

This refers to a page-global variable.

At the top of your page, put
	[$ var @days $]
(and add the other variables)

-- 
Kee Hinckley
http://www.messagefire.com/         Next Generation Spam Defense
http://commons.somewhere.com/buzz/  Writings on Technology and Society

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message