From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Bickerton Newsgroups: gmane.emacs.help Subject: printf formatting in Perl Date: Fri, 08 Sep 2006 15:51:19 -0400 Organization: mcmaster university Message-ID: Reply-To: bick@physics.mcmaster.ca NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157748074 30778 80.91.229.2 (8 Sep 2006 20:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 20:41:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 08 22:41:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLn9b-0005UH-SD for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2006 22:40:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLn9b-0007LU-Ei for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2006 16:40:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!elk.ncren.net!newsflash.concordia.ca!news.sfu.ca!utnut!newserver!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: kuiper.physics.mcmaster.ca Original-X-Trace: informer1.cis.mcmaster.ca 1157745081 4356 130.113.172.217 (8 Sep 2006 19:51:21 GMT) Original-X-Complaints-To: usenet@informer1.cis.mcmaster.ca Original-NNTP-Posting-Date: 8 Sep 2006 19:51:21 GMT User-Agent: Mozilla Thunderbird 1.0.6-7.4.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:141615 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37237 Archived-At: Hi All, I'm afraid I'm being a bit picky here, but I'd like to find a way to change the indentation used by emacs for the printf command in a Perl script. When I use a printf statement which is longer than the line length, I'd prefer to put it on several lines, but subsequent lines don't come out indented with respect to the printf. An example: Example 1 (doesn't indent subsequent lines): printf STDOUT "This string fills a lot of the line: %.3f %.3f\n", $var1, $var2; I've found a work-around by concatenating part of the string onto the subsequent line, like this: Example 2 (does indent subsequent lines): printf STDOUT "This string fills a lot of the line: %.3f %.3f". "\n", $var1, $var2; The indentation in example 2 is what I'm looking for, but without needing to concatenate. Suggestions? regards, steve