building_arch has asked for the wisdom of the Perl Monks concerning the following question:
And I receive the following response: "Experimental push on scalar is now forbidden at ... line 7582, near "} )" Execution of ... aborted due to compilation errors." I must confess that I feel tutored to follow somebody else's way here. I am not asking what I should do to obtain my goal here. I am just asking: what is happening? Why should be this strictness an improvement? Thank you in advance for your attention - Gian Lucano strict; no warnings; my @things = ( 1, 2, 3, "and", 4, 5); my @bucket; my $counter = 0; foreach my $elt ( @things ) { if ( $elt ne "and" ) { push ( $elt, @{ $bucket[$counter] } ); } if ( $elt eq "and" ) { $counter++; } }
|
|---|