Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Tutorial on making a proper module?

by Anonymous Monk
on Jan 14, 2016 at 04:39 UTC ( [id://1152740]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Tutorial on making a proper module?
in thread Tutorial on making a proper module?

The "official" way for data files is File::ShareDir / File::ShareDir::Install ...

The old official way is File::Spec->rel2abs(__FILE__)

... there is File::FindLib ... since FindBin is broken

Replies are listed 'Best First'.
Re^4: Tutorial on making a proper module?
by choroba (Cardinal) on Jan 14, 2016 at 09:56 UTC
    Is it still broken? This reply to the discussion you linked to hints otherwise.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      yes, like said there, still broken on all the old perls.... findbin isn't on cpan , findbin is only in perl, its not dual lived, thus all the old ones are broken
Re^4: Tutorial on making a proper module?
by Cody Fendant (Hermit) on Jan 14, 2016 at 06:13 UTC

    OK that's more complex than I was hoping for, but that's very helpful, thanks.

    I might just stuff them into scalars and add another module to return them for the time being. Don't judge me!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found