Lunarpages Web Hosting Forum

Scripting Languages Hosting Help => C++ / PERL / CGI Support => Topic started by: android45 on November 05, 2012, 01:25:13 AM

Title: variable?
Post by: android45 on November 05, 2012, 01:25:13 AM
Can somebody please tell me what do the symbols $ @ and % mean when prefixing a variable? Thanks in advance.
Title: Re: variable?
Post by: Pete on November 05, 2012, 04:56:49 AM
A bit scary when a "Mobile Application Development" company post on a forum asking about technical issues.
I know your only posting to get backlinks but..............I would not want to let your company to do any work for me as it looks like you dont know what your doing  !!!!
Title: Re: variable?
Post by: annaharris on May 07, 2013, 04:17:55 AM
"$" means it is a variable, "@" means it is an array and "%" means it is a hash.
Title: Re: variable?
Post by: MrPhil on May 07, 2013, 04:51:04 AM
'$' is, more specifically, a scalar value, including not only simple variables but also references and slices of multidimensional arrays. In Perl, when to use $, @, and % can be very confusing to figure out until you're quite experienced. Depending on how you're handling a variable, you can find yourself switching back and forth between $ and @ or %.