dev-resources.site
for different kinds of informations.
Create foo.a using Pure Perl and Archive::Ar
Published at
12/20/2021
Categories
perl
c
cpp
cpan
Author
yukikimoto
Author
10 person written this
yukikimoto
open
I'm searching for the way to create static library such as "foo.a".
I found Archive::Ar on CPAN.
use Archive::Ar;
my $ar = Archive::Ar->new;
$ar->read('./foo.ar');
$ar->extract;
$ar->add_files('./bar.tar.gz', 'bat.pl')
$ar->add_data('newfile.txt','Some contents');
$ar->chmod('file1', 0644);
$ar->chown('file1', $uid, $gid);
$ar->remove('file1', 'file2');
my $filehash = $ar->get_content('bar.tar.gz');
my $data = $ar->get_data('bar.tar.gz');
my $handle = $ar->get_handle('bar.tar.gz');
my @files = $ar->list_files();
my $archive = $ar->write;
my $size = $ar->write('outbound.ar');
$ar->error();
I'm working to create SPVM.
SPVM has C/C++ binding tools.
cpan Article's
30 articles in total
A link site of your very own
read article
App::cpx
read article
Combining calendars
read article
Installing CPAN modules from git
read article
Deploying Dancer Apps
read article
Feature release 1.36 of the Date::Holidays Perl distribution
read article
Building a tool to integrate Readwise.io highlights into my Zettelkasten via Perl
read article
Dist::Zilla::Plugin::GitHub::CreateRelease
read article
GitHub Organisations
read article
Mission (Almost) Accomplished
read article
Writing a CPAN module that talks to ChatGPT
read article
How to download cpanm in the portable way that supports Perl 5.8.1
read article
SPVM::IO 0.14 is released on Perl/CPAN
read article
Feature release 1.32 of Date::Holidays Perl distribution
read article
CPAN Module Tutorials
read article
cpanm - Installation of Perl Modules on User Directories 2022
read article
Wrapping a JSON API to access your personal data
read article
Highlighting members of the Perl family
read article
Create foo.a using Pure Perl and Archive::Ar
currently reading
Multiple ways to inheritance in Perl
read article
Taming the Moose: Classing up Perl attributes
read article
Some thoughts on Perl template processing
read article
Making Single-binary Release with pp
read article
The reports of Perlβs death have been greatly exaggerated
read article
Read The Fantastic Manual: How to get the most out of Perl documentation
read article
Failing to get product information from Amazon with Perl
read article
CPAN Release of TooMuchCode 0.18
read article
Fast Perl module installation with cpm
read article
CPAN installation as a test, with GitHub workflow
read article
CPAN Release of TooMuchCode 0.17
read article
Featured ones: