too much Perl…

May 16th, 2003 at 4:58 pm

What’s wrong with this C++ line ?

string str = err_str . " " . reason . "n";

It took me at least 2 minutes fighting with the compiler to recall that strings are concatenated by “+” in C++, “.” is Perl

Related posts:

  1. problems with recent changes of use.perl !
  2. perl bit-crunching
  3. Coding in C++, wishing it were Lisp (or Perl)
  4. some regex “best practices”
  5. some Perl “magic”

Leave a Reply

To post code with preserved formatting, enclose it in `backticks` (even multiple lines)