Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi :)

The app requires the Database at /home/$USER/ (Replace the $USER with username or value of echo $USER)

Hi :) See File::UserConfig, its File::HomeDir + File::ShareDir

see example https://metacpan.org/source/CRZEDPSYC/App-DuckPAN-0.137

So :)

App-Wordzilla/bin/ App-Wordzilla/lib/App/Wordzilla.pm App-Wordzilla/share/Wordzilla.sqlite App-Wordzilla/MANIFEST App-Wordzilla/Makefile.PL App-Wordzilla/README.md

Then to create installable package (a tarball) run perl Makefile.PL && make dist

Then to install (if you upload to cpan)  cpan App::Wordzilla
or cpanm git://github.com/tirkarthi/Wordzilla-Perl
or cpan ./App-Wordzilla-0.01.tar.gz

Other comments,

See dict for a nice interface :) prompting is laborious :) options are always more fun that prompting :) ... The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!

 my $choice = <STDIN>; ... ..

If you're keen on prompting, see ExtUtils::MakeMaker::prompt

Also bin/wordzilla becomes

#!/usr/bin/perl -- use strict; use warnings; use App::Wordzilla; App::Wordzilla::run( @ARGV ); exit( 0 );

And you've got yourself a "CPAN" style distribution

If you're interested, I offer you ?node_id=3989;HIT=module;re=N;Tu;M,


In reply to Re: Terminal based Offline Dictionary in Perl by Anonymous Monk
in thread Terminal based Offline Dictionary in Perl by xtreak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-19 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found