From 598a60d1a8aeace98ade2291a5b4cb0a6c679669 Mon Sep 17 00:00:00 2001 From: Brad Barden Date: Mon, 18 Aug 2025 01:12:56 +0000 Subject: [PATCH] Improve pod for lines, lines_* Mention that a negative count returns the last lines read. --- lib/Path/Tiny.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Path/Tiny.pm b/lib/Path/Tiny.pm index 58862e4..9fbea74 100644 --- a/lib/Path/Tiny.pm +++ b/lib/Path/Tiny.pm @@ -1364,8 +1364,8 @@ If C is provided, it will be set on the handle prior to reading. If a positive C is provided, that many lines will be returned from the start of the file. If a negative C is provided, the entire file will be -read, but only C will be kept and returned. If C -exceeds the number of lines in the file, all lines will be returned. +read, but only the last C lines will be kept and returned. +If C exceeds the number of lines in the file, all lines will be returned. If C is set, any end-of-line character sequences (C, C, or C) will be removed from the lines returned.