best Perl syntax

Tosh, Michael J michael.j.tosh at lmco.com
Thu Jun 19 16:17:08 UTC 2008


Can't use the word h31p in the subject line!!!

> _____________________________________________ 
> From: 	Tosh, Michael J  
> Sent:	Thursday, June 19, 2008 12:12 PM
> To:	'developers at bugzilla.org'
> Subject:	best Perl syntax
> 
> Can someone please help me fix this code, seems a little repetitive:
> 
> my @labs = qw/ lab1 lab2 /;
> my @days = qw/ Monday Tuesday Wednesday Thursday Friday Saturday
> Sunday /;
> 
> $vars->{'labs'}  = \@labs;
> $vars->{'days'}  = \@days;
> 
> Isn't there a better way to write that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20080619/5ac16572/attachment.html>


More information about the developers mailing list