Michele Dondi wrote:
Specifically I'd like to have the possibility of doing something like this:

rename -v => 1, $orig, $new;

It's already being done:

    rename $orig, $new :verbose;

    sub rename($orig, $new, +$verbose) {
        say "Renaming `$orig' to `$new'" if $verbose;
        ...
    }

The colon is just a different syntax for a pair constructor; "say" is what many languages call "printline".

--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker

Oceania has always been at war with Eastasia.

Reply via email to