perl coding ?

Kirk Strauser kirk at
Wed Apr 21 14:54:13 PDT 2004

At 2004-04-21T17:29:34Z, Mark Ovens <mark at> 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.
Kirk Strauser

"94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list