X-Git-Url: http://git.vpit.fr/?p=perl%2Fscripts%2Fxchat.git;a=blobdiff_plain;f=Xchat%2FXPI.pm;h=2c42115dee05bdfac6611f05bf9c298de9629652;hp=db07c1ca37e7f20a69936d2023e99b9f59a3d785;hb=c89e62b2896ac98ebdfac7d77d6dc31e2db3c6a5;hpb=7088940630753b96c6584e759e53f41044e833d1 diff --git a/Xchat/XPI.pm b/Xchat/XPI.pm index db07c1c..2c42115 100644 --- a/Xchat/XPI.pm +++ b/Xchat/XPI.pm @@ -60,7 +60,9 @@ sub new { return $ph; } -eval "sub $_ { *\$_[0]->{$_} }" for @attributes; +BEGIN { + eval "sub $_ { my \$ph = \$_[0]; *\$ph->{$_} }" for @attributes; +} sub print { my $ph = shift;