I know it's just silly but it somehow occured to me that Perl might have a limitation on the length of variable names. I did expect it to have one (perhaps for security or simplicity reasons, I must say that my expectations weren't really clear in reporting that part to me). If limitation there was, I thought that it must be high enough not to be a problem (even 256 would be enough) but I do like to know of limits when they exist. In fact, it appears that there is none
perl -e 'my $name = "a" x 1_00_000_000; eval "\$$name = 1;"'
simply hogged my system for a minute or so, while its friend with an extra zero died immediately with an "Out of memory" error. I guess that being limited by memory on the size of one's variable names is not much of a problem... For a while, out of boredom (yes I do need to find a job
Long Variable Names 0 Comments More | Login | Reply /