Hi there,
I just read some articles in "Perl Best Practices" (http://perl.find-info.ru/...p-chp-11-sect-3.html) and now I know that many things I do/did are certainly not Best Practices. Most ofthe arguments look logic and clear as soon as you read them. There is one Chapter about "Never use symbolic references". Would be no problem in theory but I do not really get the point. GT - as far as I can see that - use them very much. E.g.
my $input = $IN->get_hash;
# This will set system fields like Validated to their proper values.
foreach my $key (keys %{$CFG->{add_system_fields}}) {
$input->{$key} = $CFG->{add_system_fields}->{$key};
}
It woud be interesting to hear why and why nots.
Thanks
Niko
I just read some articles in "Perl Best Practices" (http://perl.find-info.ru/...p-chp-11-sect-3.html) and now I know that many things I do/did are certainly not Best Practices. Most ofthe arguments look logic and clear as soon as you read them. There is one Chapter about "Never use symbolic references". Would be no problem in theory but I do not really get the point. GT - as far as I can see that - use them very much. E.g.
Code:
# Get our form data. my $input = $IN->get_hash;
# This will set system fields like Validated to their proper values.
foreach my $key (keys %{$CFG->{add_system_fields}}) {
$input->{$key} = $CFG->{add_system_fields}->{$key};
}
It woud be interesting to hear why and why nots.
Thanks
Niko