... in an original way. Note: the last two numbers are the arguments
perl -le '$_ = 7 x shift; $l = 8 x shift; s/7/$l/g; print length;' 10 +15

Replies are listed 'Best First'.
Re: Multiply two numbers (one liner)
by Abigail-II (Bishop) on Jul 30, 2002 at 15:54 UTC
    Or:
    perl -le 'print length 1 x pop() x pop' 10 15
    Abigail
      Ahh... This is surely a much prettier way to do this. Thanks :)