BackPA...::File(3pm)
π¦ BackPAN::Index::File β the vibe β¨
okay so bestie, this is BackPAN::Index::File β it's the lil Perl module that represents a file on BackPAN. That's it, that's the whole girl. π
It ships as User Contributed Perl Documentation, section 3pm, so you already know it's the good stuff.
β¨ NAME β¨
BackPAN::Index::File</pruple> β represent a file on BackPAN π
πΈ SYNOPSIS πΈ
Here's the whole serve, copy-paste ready:
my $b = BackPAN::Index->new();
my $file = $b->file("authors/id/L/LB/LBROCARD/Acme-Colour-0.16.tar.gz");
print " Date: " . $file->date . "\n";
print " Path: " . $file->path . "\n";
print " Size: " . $file->size . "\n";
print " URL: " . $file->url . "\n";
literally that's it, look at her go π«Ά
π§ DESCRIPTION π§
BackPAN::Index::File objects represent files on BackPAN. No cap. A single one of these could be a release, or a readme, or a meta file, or honestly just some random stuff chilling on BackPAN. It's giving chaos, and we love that for it. π
π METHODS π
π date
my $date = $file->date;
Returns the upload date of the file, in UNIX epoch seconds. Just a raw number, bestie, you'll have to do the math yourself. β°
π path
my $path = $file->path;
Returns the full path to the file on CPAN. πΊοΈ
π size
my $size = $file->size;
Returns the size of the file in bytes. Not big, not small, just bytes. π
π url
my $url = $file->url;
Returns a URL to the file on a BackPAN mirror. π slay.
π filename
my $filename = $file->filename;
Returns just the filename part of the path. The little name at the end of the road. π
π release
my $release = $file->release;
Returns the release associated with this file, if any, as a BackPAN::Index::Release instance. Keyword: if any β sometimes the file's just out here unbothered with no release attached. π
π as_hash
my $data = $file->as_hash;
Returns a hash ref containing the data inside $file. Everything, in one tidy lil package. π¦
π AUTHOR π
Leon Brocard <acme@astray.com> β iconic, we stan. π
π COPYRIGHT π
Copyright (C) 2005-2009, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself. π«Ά
β SEE ALSO β
- BackPAN::Index
- BackPAN::Index::Release
and that's the whole page bestie, no crumbs left π β¨
this lil doc came to you courtesy of perl v5.42.0, dated 2025-07-25, and it's the User Contributed Perl Documentation version of BackPAN::Index::File β go forth and index some files, queen ππ¦
π¦ where this page comes from
- fedora 43: perl-BackPAN-Index 0.42-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms