NetApp...ersion(3pm)
π NetApp::Filer::Version π
User Contributed Perl Documentation Β· manual page for NetApp::Filer::Version (that's a 3pm page bestie, Perl module section, iykyk)
β¨ NAME β¨
NetApp::Filer::Version β it's the OO Class for representing NetApp Filer versions. That's it, that's the whole job, and it does it gorgeously. π
πΈ SYNOPSIS πΈ
Okay so here's the vibe in code:
use NetApp::Filer;
my $filer = NetApp::Filer->new({ ... });
# The "version" is: NetApp Release 7.2.2: Sat Mar 24 20:38:59 PDT 2007
my $version = $filer->get_version;
# $version->isa("NetApp::Filer::Version")
print $version->get_release, "\n";
# prints "7.2.2"
print $version->get_date, "\n";
# prints "Sat Mar 24 20:38:59 PDT 2007"
print $version->get_string, "\n";
print "$version\n";
# Both print the same thing, the second one through operator overloading,
# namely the original, unparsed version string
print $version->get_version, "\n";
# prints "v7.2.2"
Not the double get_version moment π β once on the $filer, once on the $version object. Both valid. Both iconic. Don't come for it.
π¦ DESCRIPTION π¦
This class exists to encapsulate the NetApp Filer version string β like, it takes that whole messy string and gives it a cute little home π β and then it hands you the pieces: a numeric release, a perl version, and a date string. Three little gifts. Obsessed.
π METHODS π
get_release
Returns the NetApp numerical release as a string, for example:
7.2.2
Just the numbers, no drama. π
get_date
Returns the NetApp release date as a string, for example:
Sat Mar 24 20:38:59 PDT 2007
The timezone is right there in the string, bestie, it's giving thorough. π«Ά
get_string
Returns the unparsed version string in it's entirety:
NetApp Release 7.2.2: Sat Mar 24 20:38:59 PDT 2007
In it's entirety β yes, that's the original's wording, and yes we're keeping it fr fr, every character matters. The whole raw string, nothing touched, nothing parsed, pure and untouched like a fresh manicure. β¨
get_version
Returns the NetApp release as a perl version object.
So like v7.2.2 energy instead of just a plain string. Main character formatting. π₯
π Friendly reminder:get_releasegives you the plain string7.2.2, butget_versionhands back a perl version object β different little guys, don't mix them up, they're siblings not twins.
Sign-off time π β this page comes to you from perl v5.36.0, dated 2022-11-19. Thanks for reading bestie, go parse some filer strings, you're gonna slay πβ¨π¦
π¦ where this page comes from
- debian bookworm: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms