develooper Front page | perl.perl5.porters | Postings from June 2013

recent inconsistencies in object calling

Thread Next
From:
H.Merijn Brand
Date:
June 26, 2013 15:39
Subject:
recent inconsistencies in object calling
Message ID:
20130626173926.32a8dc8c@pc09.procura.nl
This might need tests …

$ perl5.18.0 -wE'rt->insert ("bug")'
Unquoted string "rt" may clash with future reserved word at -e line 1.
Can't locate object method "insert" via package "rt" (perhaps you forgot to load "rt"?) at -e line 1.
$ perl5.18.0 -wE'rt2->insert ("bug")'
Can't locate object method "insert" via package "rt2" (perhaps you forgot to load "rt2"?) at -e line 1.

$ perl5.19.0 -wE'rt->insert ("bug")'
Unquoted string "rt" may clash with future reserved word at -e line 1.
Can't locate object method "insert" via package "rt" (perhaps you forgot to load "rt"?) at -e line 1.
$ perl5.19.0 -wE'rt2->insert ("bug")'
Can't locate object method "insert" via package "rt2" (perhaps you forgot to load "rt2"?) at -e line 1.

$ perl5.19.1 -wE'rt->insert ("bug")'
Unquoted string "rt" may clash with future reserved word at -e line 1.
Segmentation fault
$ perl5.19.1 -wE'rt2->insert ("bug")'
Segmentation fault

$ bleadperl -wE'rt->insert ("bug")'
Unquoted string "rt" may clash with future reserved word at -e line 1.
Can't locate object method "insert" via package "rt" (perhaps you forgot to load "rt"?) at -e line 1.
$ bleadperl -wE'rt2->insert ("bug")'
Can't locate object method "insert" via package "rt2" (perhaps you forgot to load "rt2"?) at -e line 1.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.19   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About