Re: Confusion on @array vs $array[] vs $array

2002-12-19 Thread kevin christopher
Hope this doesn't further belabor the issue, but just to put my two cents in, Perl syntactic rules for prefixing "$", "@", "%" are very consistent, IMHO: You just need to keep in mind the types of the values/data types ultimately being expressed, and it should become clearer. "$" always prefixe

beginners-cgi@perl.org

2002-06-07 Thread kevin christopher
Janek: Thank you for explaining the difference between calling subroutines with vs. without the ampersand. I'm glad I'm on the beginners list. Sincerely, Kevin Christopher -- Original Message -- From: Camilo Gonzalez <[EMAIL PROTECTED

beginners-cgi@perl.org

2002-06-05 Thread kevin christopher
Yes, you can call subroutines either way, with or without the "&". The only case when the subroutine must be prefixed with an ampersand is, I believe, when you're assigning a reference variable, eg: $reference_x = \&subroutine_y; But that's another story. Kevin -- Original Message ---