NetApp...ersion(3pm)

πŸ“¦
version 500.002 Β· 2 versions
  • 500.002 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 500.002 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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_release gives you the plain string 7.2.2, but get_version hands 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