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

Re: [MacPerl] Mac::Glue?



Chris Nandor <pudge@pobox.com>, wrote:

>I should make it more clear.  The brackets do not signify to use brackets,
>but that the parameters in brackets are optional.
>
>  $obj->connect_to("Internet", checking => 1, sending => 1);
>
>That should do it.

That did, in fact, do it!  More succinctly, because I don't need to 
change the settings, I shoud be able to:

$obj->connect_to("Internet");

and achieve the same effect.

Then, Enrique Terrazas, <terrazas@pangloss.ucsf.EDU> wrote:

>Since the direct object is a singular "service or account", I would imagine
>you need to connect to each one individually.  Since you already have the
>accounts in @raw_accounts, why don't you do a foreach?
>
>foreach (@raw_accounts) {
>    $obj->connect_to($_);
>}

Uh-uh, this fails silently.  Something similar might work, though.

foreach (@raw_accounts) {
    $obj->connect_to("$_");
}

Forcing the double-quotes seems to do the trick.


Next step, composing mail in BBEdit and sending to Claris Emailer as new 
message! 

--B

# Brian McNett                                      Fungal Parataxonomy
# Webmaster, Staff Writer               Mycology Information (Mycoinfo)
#                              **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/>
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


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