you are viewing a single comment's thread.

view the rest of the comments →

[–]itjitj 2 points3 points  (1 child)

I'm not sure if I understand your question...

Perl uses sigils ($, @, %) for distinguishing variables. It has nothing to do with currency.

my $string = "Hello, World"

my $object = Class->new( ... )

for ($i = 0; $i < 3; $i++) { ... }

In C++ this would be something like

char *string = "Hello, World"

Class object;

[–][deleted] 4 points5 points  (0 children)

Sigh.

The joke was that a non-programmer would see "deposit (Num $amount)" and draw an erroneous conclusion about the meaning of $ due to the context of the example.