NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
To an extent... (Score:1)
To an extent, this is very true. If you have some experience programming.
But, if you don't have any/much experience programming... then this gets very confusing:
Because a newbie sees the sigil and thinks: scalar
Then along comes:
And he thinks: same scalar
And it takes
Re:To an extent... (Score:2)
Most people we teach don't get $hash and $hash{element} confused either. One doesn't have a curly brace after it. This is another thing we emphasize, and we find it very easy to teach.
I can see the problem for people who teach themselves Perl from the wrong sources, though, but I've taught a lot of non-computer-science people Perl, and this hasn't been one of the things they get confused about.
Reply to This
Parent
Re:To an extent... (Score:1)
Yep. Makes perfect sense to me. I agree totally.
But... I've got some customers that, after a week, still couldn't tell the difference between those two variables. They (mostly) get the scalar / hash thing... and getting an element of a hash.
But as soon as you give them (the scalar and the hash) both the same name, they fre
Re:To an extent... (Score:2)
You already know they are going to have trouble with that stuff, so you head it off before they have a chance to get confused.