What you'all don't count from zero? Okay, add one then...
--
++
| Eric G. Milleregm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc |
++
On Sun, 24 Oct 1999, Eric G . Miller wrote:
> For a count of elements in an array
>
> $count = $#array;
^
this is the subscript of the last element in array, one less than
the length, since there is a 0th element;
$count++; # number of elements in array @array;
you could als
For a count of elements in an array
$count = $#array;
--
++
| Eric G. Milleregm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc |
++
-BEGIN PGP SIGNED MESSAGE-
On Mon, 25 Oct 1999, Olaf Conradi wrote:
> Use of implicit split to @_ is deprecated at ./dialog.pl line 34.
>
> $message_len = split(/^/, $message);# <-- line 34
split always splits to an array. Here, you're trying to get the number of
elements ge
Olaf Conradi ([EMAIL PROTECTED]) wrote:
> Use of implicit split to @_ is deprecated at ./dialog.pl line 34.
> $message_len = split(/^/, $message);# <-- line 34
Split normally returns an array, not a scalar... unless I'm missing something.
(I'm no perl guru.)
--
Greg Wooledge
Hello,
I'm new to perl and want to write a small perl script with a nice
userinterface. There is a wrapperscript for /usr/bin/dialog,
but it gives the following warning:
Use of implicit split to @_ is deprecated at ./dialog.pl line 34.
I'm using potato with perl-5.005.
What is the correct synta
6 matches
Mail list logo