From: Tonuzi Selim <[EMAIL PROTECTED]> > That is what I expect. > > I have done some benchmarking on smaller files but I > did not see any time difference between the 2 coding > styles. > > I am just wondering if these 2 codes are interpreted > in the same way by perl when it uilts its bytecode.
If you run the script with perl -MO=Deparse perl will parse and compile it and then convert the bytecode back to Perl code and print it: C:\WINNT>perl -MO=Deparse -e "$SIGNALS{$SIGNALNAME}= {isINPUTof=>[$1], isOUTPUTof=>[$2]};" $SIGNALS{$SIGNALNAME} = {'isINPUTof', [$1], 'isOUTPUTof', [$2]}; -e syntax OK vs. C:\WINNT>perl -MO=Deparse -e "$SIGNALS{$SIGNALNAME}->{isINPUTof} = [$1];$SIGNALS{$SIGNALNAME}->{isOUTPUTof} = [$2];" $SIGNALS{$SIGNALNAME}{'isINPUTof'} = [$1]; $SIGNALS{$SIGNALNAME}{'isOUTPUTof'} = [$2]; -e syntax OK So no, there is a difference. Jenda=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs