[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Glue



I've been playing with the glue modules trying to learn how they work.
While the
following gives me what I want (The status of my PPP connection.):

#!perl -wl
use Mac::Glue ':all';
use strict;

my($p, %params, $params);
$p = new Mac::Glue 'Finder';
# Get status of PPP
%params = $p->ppp_status();
print  $params{'RAsb'};

I get the feeling I am missing something and there is a cooler way such as:

print $p->prop('state', of => $p->ppp_status());  # does not work

Can someone show me where I went worng?
dave





==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org