lvalue canât set data with Devel::DProf
#!/usr/local/bin/perl my $hogedata = 'init'; hoge() = 'hogehoge'; printf "%s\n", hoge(); sub hoge : lvalue { $hogedata; }
ã¨ããã¹ã¯ãªããã¯
Linux% perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi FreeBSD% perl -v This is perl, v5.8.8 built for i386-freebsd-64int
ã®ã©ã¡ãã®ç°å¢ã§å®è¡ãã¦ããDevel::DProf ãæå¹ã ã¨å¤ãã»ããã§ããªãã
% perl test.pl hoge = hogehoge % perl -d:DProf test.pl hoge = init
experimental ãªã®ã§ã¾ããããããªããã ãã©ããã£ããæ¢åºï¼
10åå¾è¿½è¨
perldoc perltodo ã«ãã
LVALUE functions in the debugger The old perltodo notes that lvalue functions don't work in the debug- ger. This would be good to fix.
ãè¦ãã¨ãDProf ã¯é¢ä¿ãªãã¦ãdebugging mode (perl -d) ã 㨠lvaule subroutine ã¯ç¡å¹ã«ãªãã®ããªã
ããã«5åå¾
ããã ã
http://iandeth.dyndns.org/mt/ian/archives/000615.html