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

Re: [MacPerl] droplet



At 2:35 PM -0500 10/1/99, Simon Martel wrote:
>Hi!
>
>I am new to programming and english isn't my native langage. I learn
>programming with MacPerl and some JavaScript. I want to make a droplet
>to clean some html files. My question is : What is the way to tell the
>droplet it should read the file i drop on it. I already have the book
>"MacPerl, Power and Ease".
>
>Thanks ! :-).

I don't have my MPPE in front of me, or I'd give you a page number.

You want to access @ARGV - it will contain pathnames to every file dropped
on it.

So, to get the first file
$myFile = $ARGV[0];

-Jeff Lowrey



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