Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: Questions about creating CPAN modules

by gsiems (Chaplain)
on Oct 13, 2009 at 11:23 UTC ( #800887=note: print w/replies, xml ) Need Help??

in reply to Re: Questions about creating CPAN modules
in thread Questions about creating CPAN modules


I'll have a study on Module::Install and it's requires_external_bin.

which: Seek and ye shall find... I should have sought first. It appears that CPAN already has a File::Which. One down...

cat: While there is a File::Cat, it appears to merely concatenate files, whereas I was using cat for it's ability to expand environment variables and assorted backticked commands. For example:

cat <<EOT It is `date` and $USER needs more coffee. EOT

I'm not even sure where to begin to re-impliment that in perl.


Replies are listed 'Best First'.
Re^3: Questions about creating CPAN modules
by Corion (Pope) on Oct 13, 2009 at 11:25 UTC

    What you rely on is no magic on the part of cat but more on the part of /bin/sh, and no, there is no easy way to replicate that functionality as-is without writing a shell interpreter.

      True... however, I don't know how else to do it without using cat as a wrapper of sorts. So, even though cat does not contain the magic it seems to be needed to enable the magic.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800887]
[james28909]: politicians making jobs for themselves? that is absurd! we all know how hard those politicians have it, having to take millions from lobbiest while screwing over their citizens. have a little sympathy why dont ya!

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-12-15 18:37 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (442 votes). Check out past polls.