What I Hate About Your Programming Language
Subject:   variable contexts in perl
Date:   2003-05-13 16:04:17
From:   anonymous2
why do I have to tell the language whether I want an integer or not? Being able to reference arrays in scalar context and references in hash context means that complex data structures with more than one level of reference are a nightmare to work out exactly which combinations of $ and -> and { you need to reference the data you want.
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • variable contexts in perl
    2003-05-14 01:43:22  anonymous2 [View]

    Ugh because numbers in Perl are floating point by default. If you read perldoc perlop and perldoc integer you'd see this. As for references, sounds like you lack the knowledge. Anybody who learsn references in Perl knows how to dereference them. If you can't figure out how to dereference or when to, then you shouldn't be playing with references let alone worrying about how to defrerence. Sounds like you don't know about design, while Perl code can get ugly it's still easy to design good code. As for readability,