Apr 17, 2007 #1 audiopro Programmer Joined Apr 1, 2004 Messages 3,165 Location GB When declaring vars, is it enough to just declare eg. my $Variable; rather than giving it an actual value ie. my $Variable=34; Keith http://www.studiosoft.co.uk
When declaring vars, is it enough to just declare eg. my $Variable; rather than giving it an actual value ie. my $Variable=34; Keith http://www.studiosoft.co.uk
Apr 17, 2007 #2 lcs01 Programmer Joined Aug 2, 2006 Messages 182 Location US Yes, in perl, you can and are encouraged declaring: my $var; w/o initializing a value -- not like c++. Upvote 0 Downvote
Yes, in perl, you can and are encouraged declaring: my $var; w/o initializing a value -- not like c++.
Apr 17, 2007 #3 KevinADC Technical User Joined Jan 21, 2005 Messages 5,070 Location US depends on the situtaton, but yes you can declare just the variable, or a list of variables: my ($var1, $var2, @var, %var); ------------------------------------------ - Kevin, perl coder unexceptional! Upvote 0 Downvote
depends on the situtaton, but yes you can declare just the variable, or a list of variables: my ($var1, $var2, @var, %var); ------------------------------------------ - Kevin, perl coder unexceptional!