Last(3pm)
π
Last(3pm) β aka Lire::Last, bestie edition π
okay so this is the manual page for Last(3pm), straight out of LogReport's Lire Documentation β Perl module docs, section 3pm, the whole vibe. let's get into it β¨
πΈ NAME πΈ
Lire::Last β the Lire class that implements the last operator. that's it, that's the whole name. iconic behavior honestly π«Ά
β¨ SYNOPSIS β¨
use Lire::Last
that's the whole thing. one line. chef's kiss. no cap π§
π¦ DESCRIPTION π¦
so this is the class that implements the last operator, and here's what it actually does: it outputs the last value appearing in its field when the DLF records are sorted according to the "sort_fields" attribute. π―
and if you don't set anything? the default sort order is the default timestamp sort. so it just... sorts by timestamp unless you tell it otherwise. main character energy π
π METHODS π
new( %params )
creates a new Lire::Last object. that's it. brand new baby object, fresh out the box π
sort_fields( [$new_sort_fields] )
returns the fields that are going to be used to sort the DLF records. this is a reference to an array of DLF field names. literally an arrayref, don't forget π₯
if the $new_sort_fields parameter is set, it gets used as the new sort order. two rules, bestie, no exceptions:
- it must be an array reference π
- it should only contain valid field names for the current report specification's schema
and when no sort_fields are set, the default is to use the default timestamp field. that's the fallback, that's the vibes π
also, small chaos detail: the original description of this method ends with a literal=cutsitting there in the prose. yes, really.=cut. it's in the source. we don't question it, we just report it π
π SEE ALSO π
go read these next, they're the friend group:
Lire::ReportSpec(3pm)Lire::ReportOperator(3pm)Lire::Aggregator(3pm)Lire::Aggregate(3pm)Lire::First(3pm)
π AUTHORS π
the legends who made this:
Francis J. Lacoste <flacoste@logreport.org>Wolfgang Sourdeau <wsourdeau@logreport.org>
β VERSION β
$Id: Last.pm,v 1.14 2008/03/09 19:27:31 vanbaal Exp $
exact string, character for character, don't touch it π
πΈ COPYRIGHT πΈ
Copyright (C) 2001-2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. π«Ά
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. β οΈ
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. π¬
and that's the page, bestie! this was Lire 2.1.1, dated 2025-09-28, filed under Last(3pm). go forth and sort your DLF records π
β¨π
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms