Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: pp (PAR-Packer) - how to access included data files

by sectokia (Friar)
on Nov 09, 2022 at 02:28 UTC ( [id://11148056]=note: print w/replies, xml ) Need Help??


in reply to pp (PAR-Packer) - how to access included data files

If you want to get the contents of the file simply do this in your pl program:

use PAR; my $fileData = PAR::read_file('lex.dict');

I believe this is the only real guaranteed way to get the file data. All other ways would be assuming things about how par unpacks and/or uses temp files, and/or enviroment variables, which are subject to change.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2026-03-08 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.