User Control Panel
Advertisements

HELP US, HELP YOU!

Online status keeper
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Review
View unanswered posts
Author Message
brother
Senior Member
Senior Member


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Mar 10, 2005 5:37 pm    Post subject: Reply with quote

Thx for the clarification on arrays...

I'm still a little confused why sometimes you use @ and sometimes suddenly just $

I'll just go browse around on the site you gave me, hopefully they can enlighten me a little more on this subject. Thanks for all the help.
Back to top
brother
Senior Member
Senior Member


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Mar 10, 2005 5:41 pm    Post subject: Reply with quote

The site proved useful, i found my answer in just under a minute, i'll paste it here should others have the same question:

Quote:
Array Element Access
You can access individual elements of an array using the subscript operator []. Since the result of accessing a single element of an array is a scalar, when you use the subscript operator you also use a $ in front of the array name instead of a @. This seems confusing at first, but keep in mind that the result of accessing an array element is a scalar. Just like in C/C++, perl arrays start with a subscript of 0 - so the first element in the array @names is $names[0] and $names[1] is the second element in the array.
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Thu Mar 10, 2005 9:04 pm    Post subject: Reply with quote

Pfft. global .. local all the same to me. Razz
Yeah, anyhow all of the perl functions can be found at perl doc. ( http://www.perl.com/doc/manual/html/pod/perlfunc.html )
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Review All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group