Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gdog
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
gdog
14y ago
I'm sorry. I'm actually a little dyslexic and if a wrong word slips by the spell check I can get myself in trouble. s/deference/dereference/. Consider: my $x = [1,2,3]; print "@$x\n"; In the second line I consider "$" dereferencing the "add
2.
▲
by
gdog
14y ago
I don't understand why this is getting down voted.
3.
▲
by
gdog
14y ago
I'm familiar with C and understand why pointers are there. I understand what you are saying and you make a fair point. I'll take back my statement Perl has pointers. Claiming Perl has pointers is very murky (although it has some truth to it
4.
▲
by
gdog
14y ago
But you deference the addresses just C. I'd say it's more a like a pointer than not. And this is where I have I issue. You don't deference addresses in Ruby or Python. When you are writing data structures in Perl you have constantly have to
5.
▲
by
gdog
14y ago
Please don't make assumptions about my Perl knowledge as I don't make any assumptions about your technical knowledge. I'm actually a Perl Programmer full time. Yes, Perl does have pointers in it. The term 'References' (in Perl) is marketing
6.
▲
by
gdog
14y ago
I'm writing to beginner programmers. Please, please don't use Perl. Use Ruby and/or Python. Other competing scripting might be good (like lua) but I haven't used them. I do know however Ruby and Python are better. see https://sites.google.
7.
▲
by
gdog
14y ago
Thanks for the code sample and I like your convention. However, I can't enforce it on other people (especially at work) so it doesn't help me most of the time.
8.
▲
by
gdog
14y ago
The problem is in practice @_ is abused like crazy. For example: 1) I've often seen people shift from @_ half way in the middle of a function. If you really want to be certain about a method's formal parameters you have to read the entire