Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: question about using format Message-ID: <11320@jpl-devvax.JPL.NASA.GOV> Date: 5 Feb 91 23:59:28 GMT References: <090557.28625@timbuk.cray.com> <1991Feb05.223438.15456@gtisqr.uucp> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 16 In article <1991Feb05.223438.15456@gtisqr.uucp> roger@gtisqr.uucp (Roger Droz) writes: : I'm not sure this trick is even between the lines in the man page, but I : have had success using expressions (including subroutine calls) in : formats: : : format pageheader = : This time is @<<<< : sprintf("%-2.2d:%-2.2d", $hour, $min) : . : : I'm not a fan of using undocumented features, so I'd like the official : blessing of the Gurus before continuing to use expressions in formats. It's documented as legal in the book. Larry