Kirk Strauser wrote:

At 2004-04-21T17:29:34Z, Mark Ovens <[EMAIL PROTECTED]> writes:

$dup-number = substr($dup-counter, 0, length($dup-counter) - 1);

Did you actually test that? I'm pretty sure Perl doesn't like dashes in variable names:

    % perl -e '$foo-bar = 1;'
    Can't modify subtraction (-) in scalar assignment at -e line 1, near "1;"
    Execution of -e aborted due to compilation errors.

You are quite correct; I just copied the OP's variable names. He has since sent me a copy of the script and it does use '_' rather than '-' so I guess it was a typo in his e-mail.


Thanks for pointing it out.

Regards,

Mark


_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to