"global symbol requires explicit package name" is a result of "use strict;".
You can correct that by declaring the variable in question like:
Perl has a built-in "length" function that returns the string length. No Module is necessary.my $variable;
There are a TON of modules - we do not refer to them as "include" modules in Perl.my $length = length($variable);
These are available at CPAN.
There are also a number of modules that come pre-installed with a Perl distribution.
If you have questions with coding, it would help immensely if you posted a code sample, using <code> tags.
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
In reply to Re: what perl module to include to use string length function?
by NetWallah
in thread what perl module to include to use string length function?
by tracyjeannine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |