On Tue, 19 Jun 2001 00:59:09 +0200, allan wrote:

>is it possible in macperl to save a basic script as a droplet and when i
>drag a txt-file over the droplet the file will be read as input,
>somthing like this (were the droplet itself should detect the file input)
>
>open (FILE, <STDIN>) or die $!;
>while (<FILE>) {
>       s/a/abc/g;
>       print;
>}

Er... isn't this just dead easy?

        while(<>) {
            print;
        }

Drop a file on the droplet, and you'll see its contents flashing by in
the output window.

-- 
        Bart.

Reply via email to