• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux File::ShareDir Download

File::ShareDir

August 25, 2009
The software enables users to locate shared files at both per-dist and per-module levels, allowing for easy organization and management of files.
Version 1.00
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Adam Kennedy
File::ShareDir is a Perl module that can provide a convenient solution to the common problem of accessing read-only data stored on the file system at runtime. It acts as a companion to the Class::Inspector and File::HomeDir modules, making the process more accessible to the wider Perl community. This is especially useful for those who want or need their Perl module to access a large amount of data that is stored on the file system during runtime.

By default, on a linux-like system, this data would be located in a directory such as /usr/share. However, since Perl runs on many different systems, using any one location is unreliable. Perl provides a way to access this data, but it is not well-known, and as a result, many module authors have to come up with inefficient ways to make the data available to their code.

One common method is to create enormous multi-megabyte .pm files that store the data in a Perl data structure, needlessly chewing up memory. Another method involves accessing the data through a filehandle after the __DATA__ compiler tag. However, these approaches can be complicated and inefficient.

File::ShareDir offers a simple solution: write the data files to the system at install time, then know where to find them at runtime. The module takes advantage of Perl's install system to create an "auto" directory for every distribution and module file. These directories can be used to store any type of data, and File::ShareDir provides a number of useful functions for locating shared data files.

For instance, users can call the dist_dir and module_dir functions to locate the directories where distribution-level and module-level shared data files are kept, respectively. There are also functions like dist_file and module_file for finding specific files in these directories. Finally, the class_file function searches up the inheritance tree to locate a file.

Overall, File::ShareDir is a powerful and elegant solution to the common problem of accessing read-only data stored on the file system at runtime. Its straightforward approach makes it a valuable tool for developers of all skill levels, and its companion modules offer even more advanced functionality.
What's New

Version 1.00: N/A

Free Download 27.3K
336
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

cGmail
This software is a new and sleek tool that checks and notifies ...
bengsaver
Bengsaver is a KDE screensaver featuring bouncing balls or bee swarms with ...
Lord of the Rings engine
A Linux-based game engine built for Interplay's Lord of the Rings, which ...
Unbounded Tic-Tac-Toe
Unbounded Tic-Tac-Toe is a software that allows users to play the popular ...
C++ Debugging Support library
The C++ Debugging Support library is a debug output and memory allocation ...
scsiadd
This software enables users to add or remove SCSI devices without having ...
DeskScribe
DeskScribe records desktop activity in usability testing with a suite of tools.
okon's bandwidth manager
Obwman, also known as Okon's bandwidth manager, is a user-friendly software that ...
autopkg.pl
Autopkg.pl generates Slackware packages from various sources including tarballs, RPMs, and debs. ...
pdfrecycle
pdfrecycle is a software that generates a PDF document by assembling pages ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.