On Wed, May 30, 2001 at 04:41:13PM -0700, John Milardovic wrote:
> for $var (@files)
> {
>     print "$count++\t$var\n";
> }

I hope you weren't expecting $count to be incremented there.  ++ is not
interpolated.

Did you mean:

    for $var (@files)
    {
        print $count++, "\t$var\n";
    }



Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to