in reply to Re: "Method is not in the class but it is there!"
in thread "Method is not in the class but it is there!"

I believe there is something, otherwise how does the code work ? btw, I executed your code and it didn't produce anything. Anymore ideas from anyone ?
  • Comment on Re^2: "Method is not in the class but it is there!"

Replies are listed 'Best First'.
Re^3: "Method is not in the class but it is there!"
by Anonymous Monk on Sep 05, 2011 at 08:40 UTC

    That is not possible :) it should produce something

    use Data::Dump::Streamer; print Dump( Data::Dump::Streamer->can('VERSION') ); __END__ $CODE1 = \&UNIVERSAL::VERSION;
      This was what I tried, please let me know if I screwed up,
      perl -I ~/lib/ -MCC2::Schema::BirthdayCardList -MData::Dump::Streamer +-el 'print Dump(CC2::Schema::BirthdayCardList->can("add_to_birthday_c +ards"))';
      It didn't produce anything. Also, I did this :
      perl -MData::Dump::Streamer -el 'print Dump(Data::Dump::Streamer->can( +"VERSION"))';
      and there was no output.

        Change the -el to -le. :-)

        -- Ken

        You probably need to upgrade or install one of these :)

        $ perl -d:Modlist -e " use Data::Dump::Streamer; " B 1.29 B::Deparse 1.04 B::Utils 0.15 Carp 1.20 Config Data::Dump::Streamer 2.32 Data::Dump::Streamer::_::Printers Data::Dumper 2.131 DynaLoader 1.13 Exporter 5.64_03 Exporter::Heavy 5.64_03 Fcntl 1.11 File::Spec 3.33 File::Spec::Unix 3.33 File::Spec::Win32 3.33 Hash::Util 0.11 IO 1.25_04 IO::File 1.15 IO::Handle 1.31 IO::Seekable 1.1 List::Util 1.23 PadWalker 1.92 Scalar::Util 1.23 SelectSaver 1.02 SelfLoader 1.18 Symbol 1.07 Text::Abbrev 1.01 Text::Balanced 2.02 XSLoader 0.15 base 2.16 bytes 1.04 feature 1.20 overload 1.13 re 0.18 subs 1.00 utf8 1.09 vars 1.02 warnings 1.12 warnings::register 1.02
        Probably stick to modules listed at http://cpansearch.perl.org/src/JJORE/Data-Dump-Streamer-2.32/META.yml
        this assumes that
        perl -I ~/lib/ -MCC2::Schema::BirthdayCardList -le 'print CC2::Schem +a::BirthdayCardList->can("add_to_birthday_cards")';
        prints something like CODE(0x3f8ff4), basically that add_to_birthday_cards exists