App::C...:Range(3pm)

πŸ’– App::ClusterSSH::Range πŸ’–

okay bestie, so this is the manual page for App::ClusterSSH::Range (that's the 3pm one, a Perl module doc, we're in our perl era ✨). It's a tiny little cutie that does exactly one job and does it so well, and I'm obsessed actually.


✨ SYNOPSIS ✨

use App::ClusterSSH::Range;
my $range=App::ClusterSSH::Range->new();
my @list = $range->expand('range{0..5}');

like... that's it. that's the whole vibe. three lines and you're slaying 🫢


🌸 DESCRIPTION 🌸

So here's the tea: this module does string expansion β€” it goes looking for ranges in your strings, does its thing with them, and then finishes everything off by handing the result to File::Glob::bsd_glob. lowkey iconic behaviour. no cap. πŸ’…


πŸŽ€ METHODS πŸŽ€

  • $range = App::ClusterSSH::Range->new(); β€” bestie this makes you a brand new object, fresh out the box, ready to do range processing for you. new object, new me, main character energy fr fr. ✨
  • @expanded = $range->expand(@strings); β€” this one expands the strings you hand it. Ranges get checked for and processed, and then the resulting string gets put through File::Glob::bsd_glob before it's returned back to you. it's giving... pipeline. it's giving... glow up. πŸ¦‹

Now, ranges are of this form, and I need you to look at them because they're so satisfying:

base{start..stop}
a{0..3} => a0 a1 a2 a3
b{4..6,9,12..14} => b4 b5 b6 b9 b12 b13 b14

see how a{0..3} just blooms into a0 a1 a2 a3?? and b{4..6,9,12..14} pops out as b4 b5 b6 b9 b12 b13 b14?? the way that it handles a comma-separated mix of single values and ranges in one set of braces... πŸ’€ ate and left no crumbs, honestly. note that the ranges go from start up to stop, and the separate bits are separated by commas. periodt. 🌈


no notes, no gotchas, no scary warnings on this one β€” just a lil string expander doing its lil job πŸ’œ

perl v5.42.2 Β· 2026-05-05 Β· App::ClusterSSH::Range(3pm) β€” okay that's the whole page bestie, mwah, go expand some ranges, you got this πŸ‘‘πŸ’–

πŸ“¦ where this page comes from