5
Come posso risolvere questo caso di "Uso inutile di una variabile in un contesto vuoto"? verrà utilizzato (linea 17)Come posso risolvere questo caso di "Uso inutile di una variabile in un contesto vuoto"?
sub next {
my $page = shift;
my $next_stage = $page->{tree}->{nextstage};
my $prev_stage = $page->{stage};
print "Moving from: $prev_stage to $next_stage.\n" if ($DEBUG);
if ($next_stage eq "end") {
serialize_grabber_conf_answers($page, $config_file_tmp);
$grabber_initialized = 1;
return FALSE;
}
unless (defined ($page->{next_page})) {
serialize_grabber_conf_answers($page, $config_file_tmp);
my $next_page = ($page, $config_file_tmp, $next_stage);
$next_page->{stage} = $next_stage;
$page->{next_page} = $next_page;
$next_page->{prev_page} = $page;
}
return FALSE;
}
Grazie
http://perldoc.perl.org/perldiag.html e http://perldoc.perl.org/diagnostics.html – toolic
[perldata] (http://perldoc.perl.org/perldata.html#List -valori-costruttori), [perlfaq4] (http://perldoc.perl.org/perlfaq4.html#What-is-the-difference-between-a-list-and-an-array?) –
Hai altri problemi . next_page non sembra che sia un riferimento all'hash. Stai usando 'strict' ?? – runrig