in reply to Problems to use strict with dynamic $$variable
You cannot declare $$lentry. You can only declare scalar, arrays and hashes.
The usual way to deal with that kind of "dynamic variable" in Perl is to have it as a field in a hash:
my %entry; my $lentry ='L'.$count; $entry{$lentry}= $W->Label(...
You don't even need to use the 'L' prefix, as the key in the array need not be a valid identifier.
|
|---|