NetSDS::Const(3pm)
β¨ NetSDS::Const β¨
okay so bestie, welcome to NetSDS::Const β the User Contributed Perl Documentation page for it, no cap π
π NAME
NetSDS::Const β common NetSDS constants π
πΈ SYNOPSIS
use NetSDS::Const;
print "XML encoding is " . XML_ENCODING;
print "Week contains " . INTERVAL_WEEK . " seconds";
like, that's it. that's the whole vibe. you use it and suddenly you have constants. iconic behavior honestly π¦
π«Ά DESCRIPTION
This module provides most common constants like default encoding and language, time intervals, etc.
literally just a little treasure chest of the stuff you keep needing everywhere. default encoding? got it. default language? got it. time intervals so you don't have to remember how many seconds are in a week? got it β¨
π LANGUAGE AND ENCODINGS
the language codes bestie, all lined up:
LANG_BEβ"be"LANG_DEβ"de"LANG_ENβ"en"LANG_RUβ"ru"LANG_UKβ"uk"DEFAULT_LANGβ"ru"in current version πDEFAULT_ENCODINGβ"UTF8"
β XML CONSTANTS
the XML girlies:
XML_VERSIONβ1.0XML_ENCODINGβ"UTF-8"
π TIME INTERVALS
math but make it cute:
INTERVAL_MINUTEβ60secondsINTERVAL_HOURβ3600secondsINTERVAL_DAYβ86400secondsINTERVAL_WEEKβ604800seconds
like yes, that's a lot of seconds for a week, but that's what constants are for, so you never have to do the math yourself π§
π AUTHOR
- Valentyn Solomko
<val@pere.org.ua> - Michael Bochkaryov
<misha@rattler.kiev.ua>
π LICENSE
Copyright (C) 2008-2009 Net Style Ltd.
This program 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; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
and that's the whole page bestie!! this lil writeup is from perl v5.32.1, dated 2021-12-26 β so yeah, it's been around a minute, but it still eats π
β¨ mwah, go forth and use your constants π
π¦ where this page comes from
- debian bookworm: libnetsds-perl 1.301-4 Β· GPL-2.0-or-later
- debian trixie: libnetsds-perl 1.301-4 Β· GPL-2.0-or-later
- ubuntu jammy: libnetsds-perl 1.301-4 Β· GPL-2.0-or-later
- ubuntu noble: libnetsds-perl 1.301-4 Β· GPL-2.0-or-later
- ubuntu resolute: libnetsds-perl 1.301-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms