| Subject: | Re: printing long strings |
|---|---|
| From: | noreply@xxxxxxxxx (Gunnar Hjalmarsson) |
| Date: | Fri, 31 Aug 2007 03:02:23 +0200 |
| Newsgroups: | perl.beginners |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: marine subroutine, Chas Owens |
|---|---|
| Next by Date: | Re: parsing HTML content, Jeff Pang |
| Previous by Thread: | printing long strings, R Chandrasekhar |
| Next by Thread: | html template and tables, Pat Rice |
| Indexes: | [Date] [Thread] [Top] [All Lists] |