At 10:41 AM 10/27/02 -1000, Joshua Hoblitt wrote:

> my( $one, $two ) = @{ ($q->dequeue_dontwait)[0] };

This is causing a compile error for me. I tried just [] as well.

[Sun Oct 27 10:31:57 2002] PolycomStatus.pm: syntax error at PolycomStatus.pm line 104, near "->dequeue_dontwait["
[Sun Oct 27 10:31:57 2002] PolycomStatus.pm: PolycomStatus.pm had compilation errors.
You _must_ put parentheses around it first:

  ($q->dequeue_dontwait)[0]


> while ( my( $host, $ret ) = @{ $q->dequeue_dontwait } ) {

while ( my( $host, $ret ) = @{ ($q->dequeue_dontwait)[0] } ) {

should work...


Liz

Reply via email to