Re: printing long strings
- From: noreply@xxxxxxxxx (Gunnar Hjalmarsson)
- Date: Fri, 31 Aug 2007 03:02:23 +0200
R (Chandra) Chandrasekhar wrote:
I need to print diagnostic message strings like:
warn "$parent/$child does not exist: verification failed\n";
in conditional blocks that are nested and indented. This means that, on occasion, the message string overflows to the next line in an 80-character line in my source file. The message, when it appears, is also broken at the same point. I would like the message to appear on one line without being artificially broken because of indentation.
Either print a list of strings:
warn "$parent/$child does not exist: ",
"verification failed\n";
or concatenate the message parts:
warn "$parent/$child does not exist: "
. "verification failed\n";
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.
- References:
- printing long strings
- From: R Chandrasekhar
- printing long strings
- Prev by Date: Re: marine subroutine
- Next by Date: Re: parsing HTML content
- Previous by thread: printing long strings
- Next by thread: html template and tables
- Index(es):