Next | Program Repair Shop | 48 |
$out_subs{"$sub_name"}{'title'}="$sub_name";
In perl, "..." means "construct a string"
$sub_name is already a string
So "$sub_name" is a waste of time
In other contexts, it leads to horrific bugs:
my $arg = shift; foo("$arg");
Here $arg was a reference
Not any more!
This is precisely the bad practice that strict refs was put in to save you from
$out_subs{$sub_name}{title} = $sub_name;
Next | Copyright © 2006 M. J. Dominus |