Thanks. Was right there in the manual... -Sam --- "Moon, John" <[EMAIL PROTECTED]> wrote: > Subject: 'format' puzzle > > How can I create a perl 'format' string that begins with a comment (#)? > > Eg. > > format STDOUT_TOP = > # Field1 Field2 > @<< @||| @||| > . > > > If I try '\#' then I see the backslash. I just want the pound char. > > TIA, > -Sam > > > I'm not sure where you want the "#" ... but > > DEV,SUN2>more foo2 > #! /usr/bin/perl > format STDOUT_TOP = > @ fld1 fld2 > "#" > . > format STDOUT = > @<< @||| @||| > $a,$b,$c > . > $a = 1; > $b = 2; > $c = 3; > write; > DEV,SUN2>./foo2 > # fld1 fld2 > 1 2 3 > DEV,SUN2> > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>