Hello, All:
When using foreach or while() on an array, how can I access the index of
the list that foreach()/while() is working upon? Is there an internal
variable that stores this info like PHP's current()?
--
Eric P.
Sunnyvale, CA
--
To unsubscribe, e-mail: [EMAIL PROTECTED
If you need this, I suggest using the good old fashioned for ($i = 0;
$i END; $i++) { }. Nothing broken there, I don't think.
James
On Thursday, September 26, 2002, at 11:12 PM, [EMAIL PROTECTED]
wrote:
Hello, All:
When using foreach or while() on an array, how can I access the index
[EMAIL PROTECTED] wrote:
Hello, All:
Hello,
When using foreach or while() on an array, how can I access the index of
the list that foreach()/while() is working upon? Is there an internal
variable that stores this info like PHP's current()?
No, Perl doesn't have a variable like that, you
On Fri, Sep 27, 2002 at 01:40:09PM -0700, John W. Krahn wrote:
[EMAIL PROTECTED] wrote:
When using foreach or while() on an array, how can I access the index of
the list that foreach()/while() is working upon? Is there an internal
variable that stores this info like PHP's current
Thank you Connie for helping me on this, it was fixed
by below comment you made :)))
SOA: while (SOA)
{
chomp;
You don't need to chomp it, or you don't need $/ at
last of the next line.
Priss
__
Do You Yahoo!?
Everything you'll ever
Hiya,
Wonder if someone could help me, I am trying to write
a script to pulls out all the machine names from a
revese DNS file, some how, my script will only print
out the machine names with 1.x.x.in-addr.arpa
$nslookup = '/usr/local/bin/nslookup';
$dig = '/usr/local/bin/dig';
@ZONES =
Wonder if someone could help me, I am trying to write
a script to pulls out all the machine names from a
revese DNS file, some how, my script will only print
out the machine names with 1.x.x.in-addr.arpa
$nslookup = '/usr/local/bin/nslookup';
$dig = '/usr/local/bin/dig';
@ZONES