SPUG: declarations

Joe Devlin jdevlin at stadiumdistrict.com
Sat Dec 30 13:27:18 CST 2000


my %in;#separate command for declaration, not in same line
my $one_server= $in{'server};

#alternately as global variable in the first few lines of the program
	use vars qw( %in $other_var1 $other_var2 $other_var3 %other_hash);

----------
From: 	Brittingham, John[SMTP:john.brittingham at attws.com]
Sent: 	Saturday, December 30, 2000 11:00 AM
To: 	spug-list at pm.org
Subject: 	SPUG: declarations

How do you declare $in in the following line?
my $one_server= $in{'server'};

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list