Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

pizza_party cool perl script

by bluethundr (Pilgrim)
on Sep 04, 2009 at 19:06 UTC ( [id://793560]=perlquestion: print w/replies, xml ) Need Help??

bluethundr has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm on a rather silly mission to install a great perl script on my mac called pizza_party that allows you to order pizzas from dominos.com on the command line.

Pizza Party

It requires the following perl modules:

LWP::UserAgent; HTTP::Request; HTTP::Response; HTTP::Cookies; URI::Esc +ape; Getopt::Mixed;


They are all installed using sudo cpan. But for some reason Getopt doesn't seem to be working.

Mazdayasna:~ bluethundr$ pizza_party Can't locate Getopt/Mixed.pm in @ +INC (@INC contains: /Library/Perl/Updates/5.8.8 /System/Library/Perl/ +5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ +Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Pe +rl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Li +brary/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5. +8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Lib +rary/Perl/5.8.6 /Library/Perl/5.8.1 .) at /opt/local/bin/pizza_party +line 14.
As would be suggested by cpan:
cpan[1]> install Getopt::Mixed CPAN: Storable loaded ok (v2.19) Going +to read /Users/bluethundr/.cpan/Metadata Database was generated on Mo +n, 03 Aug 2009 04:27:49 GMT Getopt::Mixed is up to date (1.10).


Also I tried modifying the .bash_profile in my home directory so my manpath would accept a directory called ~/man

and moved the man page for the app there. but the mac won't recognize it. any help getting the man page registered and the app to work?

thanks!

Replies are listed 'Best First'.
Re: pizza_party cool perl script
by almut (Canon) on Sep 04, 2009 at 20:08 UTC
    Also I tried modifying the .bash_profile in my home directory so my manpath would accept a directory called ~/man ...

    Did you start a new login shell?  bash will read .bash_profile only for login shells:

    $ echo FOO=foo >>~/.bash_profile $ bash $ echo $FOO $ exit exit $ bash --login $ echo $FOO foo $ exit logout

    (You might also want to use ~/.bashrc which is being read for every interactive (non-login) new shell...)

Re: pizza_party cool perl script
by ikegami (Patriarch) on Sep 04, 2009 at 19:23 UTC
    What do you get from
    m Getopt::Mixed
    in cpan?
Re: pizza_party cool perl script
by Utilitarian (Vicar) on Sep 04, 2009 at 22:13 UTC
    I' afraid I come from a position of ignorance on bash on a mac and the commands available by default, but if you enter
    locate GetOpt/Mixed.pm
    What directory is it in, if not one listed above in @INC, something went awry, try adding the following at the start of your Perl script
    BEGIN{ push ( @INC, "/the/directory/I/just/found" ) ; }
    WARNING: if there is already a BEGIN block add the above command to the end of it rather than writing a second one.

Log In?
Username:
Password:

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

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

    No recent polls found