Last(3pm)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’… 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 =cut sitting 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:


πŸ’œ 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 (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