Re: offtopic: perl question about dialog.pl

1999-10-26 Thread Eric G . Miller
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 | ++

Re: offtopic: perl question about dialog.pl

1999-10-25 Thread Mario Olimpio de Menezes
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

Re: offtopic: perl question about dialog.pl

1999-10-25 Thread Eric G . Miller
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 | ++

Re: offtopic: perl question about dialog.pl

1999-10-25 Thread Brad
-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

Re: offtopic: perl question about dialog.pl

1999-10-25 Thread Greg Wooledge
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

offtopic: perl question about dialog.pl

1999-10-24 Thread Olaf Conradi
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