What is perlfunc in Perl 5.34.0?
Perl is a widely used general-purpose programming language. It offers many services, ranging from text manipulation to GUI development and much more.
There were many enhancements from the Perl 5.32.0 release and the 5.34.0 release. Click here for a full list of differences between the two versions.
In this shot, we discuss perlfunc in Perl 5.34.0.
perlfunc refers to the built-in function in Perl language. Here is the full documentation for perlfunc. Let’s look at a few categories of perlfunc and how these methods changed in Perl v5.34.0.
Categories of perlfunc
-
Functions for SCALARs or strings
-
Regular expressions and pattern matching
-
Numeric functions
-
Functions for real @ARRAYs
-
Functions for list data
-
Functions for real %HASHes
-
Input and output functions
-
Functions for fixed-length data or records
-
Functions for filehandles, files, or directories
-
Keywords related to the control flow of a Perl program
-
Miscellaneous functions: defined, formline, lock, prototype, reset, scalar, undef
-
Functions for processes and process groups
-
Keywords related to Perl modules: do, import, no, package, require, use
-
Keywords related to classes and object-orientation
-
Low-level socket functions
-
System V interprocess communication functions
-
Fetching user and group info
-
Fetching network info
-
Time-related functions
-
Non-function keywords
Changes in perlfunc
There were several notable changes in Perl v5.34.0.
-
The widely used methods
my()andstate()did not previously warn users when variables with similar scope were re-declared. However, this has been resolved with better documentation for themy()andstate()methods, which now give warnings to users in situations where some lexical variables are re-declared. -
There are some changes to the
localtimeentry. This has been improved to always return the result of this method in English. -
perlfuncdocumentation has been updated to provide a much clearer understanding of what happens when thesleepmethod is called and passes a value less than or equal to zero. -
The
split()method previously had a confusing documentation, which was changed upon user requests forsplit()documentation to be simplified without the use ofjoin()s in their examples. -
In the documentation of the
msgsnd()method, a length field was also included. However, in reality, this length field did not exist in theMSGparameter to themsgsnd()method. This has been resolved.
Free Resources