Re: [perl #127856] LTA error message when declaring variables without a space between “my” and parens (my($test);)

2016-04-09 Thread JuhiMarcel LangbroekTimmerman
Hi My previous interpretation of the error was wrong, its just about a function called my having an argument $test which is not declared. The if(1) gave another message becaouse 1 was parsed and evaluated right, but try if($test) and it should give the same error. Regards, Marcel On

Re: [perl #127856] LTA error message when declaring variables without a space between “my” and parens (my($test);)

2016-04-08 Thread JuhiMarcel LangbroekTimmerman
Hi, Perhaps the error is caused by the assignment wanting to store 42 at the address of $test, which is not there yet. See also doc about 'sub () is rw { ••• }'. Look for rw traits! Furthermore, to declare and assign more variables use (my $a, my $b) = ( 42, 43); Greetings Marcel On

Re: [perl #127856] LTA error message when declaring variables without a space between “my” and parens (my($test);)

2016-04-07 Thread Brandon Allbery
On Thu, Apr 7, 2016 at 7:29 PM, Alex Jakimenko wrote: > The reason why my() is not allowed is probably exactly the same as the > reason why we don't have if(), but at least in the latter case provide a > meaningful error message. Let's take a look at what happens