Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: dynamic 2d array

by amarquis (Curate)
on Aug 14, 2008 at 13:45 UTC ( #704349=note: print w/replies, xml ) Need Help??


in reply to Re^2: dynamic 2d array
in thread dynamic 2d array

Depends on how you define it. The text is talking about global variables, which are available to code outside their containing block:

{ $i = 3; } print "$i\n";

Prints 3. Compare with:

{ my $i = 3; } print "$i\n";

Without strict, this prints only a newline. This code declares a lexically scoped $i, which only persists through the end of its enclosing block. One of the best things about strict/warnings is that perl will complain about this kind of thing, possibly saving you a bunch of time hunting down a confusing error in a large program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://704349]
help
Chatterbox?
[perldigious]: A question since I'm ignorant of what's normal for database management... Do admins change column names a lot in databases?
[perldigious]: On occasion my scripts break, because they will do something that seems laregly pointless to me... like in this case, changing a column name from "ABC Category" to "ABC Category Override".
[perldigious]: Being the ignorant one, my initial reaction to that is, "that's sort of a dick move, a lot of people like me expect column names like that to stay the same, why the hell would you change them like that for seemingly no good reason?"
[perldigious]: Or is my irritation/ frustration well founded?
[Corion]: perldigious: That seems to be more the export and likely it's the recipients of that export that like the titles changes
[Corion]: ... "changed"
[Corion]: I usually expect fixed header names, but am sometimes lenient in the order of columns. But changing the report titles often sounds to me as if you are not the sole consument of the export ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-05-25 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?