Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • That first one sure looks weird. I can't justify calling it a bug, but perldata clearly states

    Following a << you specify a string to terminate the quoted material ...
    While I could argue that '' is a legitimate string, I can't say the same for. (See that null string just before the period?)
    • It is documented in perlop:
      Following a "<<" you specify a string to terminate the quoted material, and all lines following the current line down to the terminating string are the value of the item. .... There must be no space between the "<&lt" and the identifier, unless the identifier is quoted. (If you put a space it will be treated as a null identifier, which is valid, and matches the first empty line.)

      Ilya Martynov ( [])

  • Try print and print if you want to be explicit about interpolation. I saw this done once in production code, and I took it out.