Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Using Devel::REPL

by robby_dobby (Hermit)
on Jun 27, 2016 at 08:19 UTC ( [id://1166634]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Using Devel::REPL
in thread Using Devel::REPL

Hello guiwp,

This is very strange - I can see for certain that --cfg option is available in reply-0.35 and it even worked on my latest install with --cfg. So, I'm not sure what the problem is with your install -- can you check with your debian package maintainer?

Replies are listed 'Best First'.
Re^6: Using Devel::REPL
by guiwp (Sexton) on Jun 27, 2016 at 13:45 UTC
    My test cases were:
    1. I've noted that if I just run reply without arguments and in its shell type "use mymodule" it just works fine.
    2. If I run any installed module (reply -M Data::Dumper) works fine
    Maybe somehow my module/script is interfering with the logic of the reply... I'll comment out some lines and see if things change.

    Here is header of my simple module:

    #!/usr/bin/env perl package Wik; use v5.20.2; use strict; use warnings; use open qw/:std :utf8/; use utf8; use MediaWiki::Bot qw(:constants); use Data::Dumper; use YAML::Tiny; use Path::Tiny qw(path); use Getopt::Long; use HTTP::Date; use Pod::Usage; use URI::Escape; require Exporter; our $VERSION = 0.2; our @ISA = qw(Exporter); our @EXPORT = qw(login savepages updatepages);
    Thank you @robby_dobby, I'll dig in my little code and try to see if I'm doing something wrong...
      Hello guiwp,

      Just on an off-chance, your rcfile isn't this module, right? Because, auto loading modules and other meta configuration are to go into your rcfile. This rcfile is actually an INI Config file and my rcfile looks like this:

      script_line1 = use strict script_line2 = use warnings script_line3 = use 5.018001 [Interrupt] [FancyPrompt] [DataDumper] [Colors] [ReadLine] [Hints] [Packages] default_package = SMS::Send [LexicalPersistence] [ResultCache] [Autocomplete::Packages] [Autocomplete::Lexicals] [Autocomplete::Functions] [Autocomplete::Globals] [Autocomplete::Methods] [Autocomplete::Commands]

      Take a look at Reply::Config and Config::INI::Reader::Ordered. If you've already covered it, great! If not, just something to cross out. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found