Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!reed!intelhf!agora!markb From: markb@agora.uucp (Mark Biggar) Newsgroups: comp.lang.perl Subject: Re: Question regarding variable output formats Message-ID: <1990Dec14.050237.27244@agora.uucp> Date: 14 Dec 90 05:02:37 GMT References: <1990Dec11.221304.2933@tkna.uucp> Organization: Open Communications Forum Lines: 24 In article <1990Dec11.221304.2933@tkna.uucp> alan@tkna.tkna.com (Alan Light) writes: >I can't seem to use a variable to specify an output format picture. >Consider the following code: > >$myformat = '@<<<<<<<@<<<<<<<<<<<<@<<<<<<<<<<<<@<<<<<<<<<<<@<<<<<<<<<<'; > >format STDOUT = >$myformat >$_[0],$_[1],$_[2],$_[3],$_[4] >. Perl things its a variable line not a format line. To get what you want warp the format in an eval like so: eval <