Help for this page

Select Code to Download


  1. or download this
    You used the syntax of a method call, but the slot filled by the objec
    +t reference or package name contains an expression that returns a def
    +ined value that is neither an object reference nor a package name. So
    +mething like this will reproduce the error:
    
    $BADREF = 42;
    process $BADREF 1,2,3;
    $BADREF->process(1,2,3);
    
  2. or download this
    $ perl -e 'package Foo::Bar; sub Foo {1}; sub Foo::Bar {1}; package ma
    +in; Foo::Bar->Foo'
    Can't call method "Foo" without a package or object reference at -e li
    +ne 1.
    
  3. or download this
    'Foo::Bar'->Foo