<FONT size=1>  <div>I'm a bit new to Perl and this may not be the solution you're looking for, but would it be possible to include the "\n" in your original $bigTextField declaration?</FONT><BR><BR><B><I>Ryan Allen &lt;ryan@the-summit.net&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Does anybody know how to get "\n" in a format field to be preserved in<BR>the output? For example, suppose I have this code:<BR><BR>#!/usr/bin/perl<BR><BR>my $bigTextField = " <BR>I am a dynamic figure, often seen scaling walls and crushing ice. I have been known to remodel train stations on my lunch breaks, making them more efficient in the area of heat retention. I translate ethnic slurs for Cuban refugees, I write award-winning operas, I manage time efficiently. Occasionally, I tread water for three days in a row. <BR><BR>I woo women with my sensuous and godlike trombone playing, I can pilot bicycles up severe
 inclines with unflagging speed, and I cook Thirty-Minute Brownies in twenty minutes. I am an expert in stucco, a veteran in love, and an outlaw in Peru. <BR><BR>Using only a hoe and a large glass of water, I once single-handedly defended a small village in the Amazon Basin from a horde of ferocious army ants. I play bluegrass cello, I was scouted by the Mets, I am the subject of numerous documentaries. When I'm bored, I build large suspension bridges in my yard. I enjoy urban hang gliding. On Wednesdays, after school, I repair electrical appliances free of charge. <BR>";<BR><BR>format STDOUT =<BR>+--------------------------------------------------------------------+<BR>| ^&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; ~~
 |<BR>$bigTextField<BR>+--------------------------------------------------------------------+<BR>.<BR><BR>write;<BR><BR><BR>What I end up with is:<BR>+--------------------------------------------------------------------+<BR>| I am a dynamic figure, often seen scaling walls and |<BR>| crushing ice. I have been known to remodel train stations |<BR>| on my lunch breaks, making them more efficient in the area |<BR>| of heat retention. I translate ethnic slurs for Cuban |<BR>| refugees, I write award-winning operas, I manage time |<BR>| efficiently. Occasionally, I tread water for three days in |<BR>| a row. I woo women with my sensuous and godlike trombone |<BR>| playing, I can pilot bicycles up severe inclines with |<BR>| unflagging speed, and I cook Thirty-Minute Brownies in |<BR>| twenty minutes. I am an expert in stucco, a veteran in love, |<BR>| and an outlaw in Peru. Using only a hoe and a large glass |<BR>| of water, I once single-handedly defended a small village in
 |<BR>| the Amazon Basin from a horde of ferocious army ants. I |<BR>| play bluegrass cello, I was scouted by the Mets, I am the |<BR>| subject of numerous documentaries. When I'm bored, I build |<BR>| large suspension bridges in my yard. I enjoy urban hang |<BR>| gliding. On Wednesdays, after school, I repair electrical |<BR>| appliances free of charge. |<BR>+--------------------------------------------------------------------+<BR><BR>But what I want is:<BR>+--------------------------------------------------------------------+<BR>| I am a dynamic figure, often seen scaling walls and |<BR>| crushing ice. I have been known to remodel train stations |<BR>| on my lunch breaks, making them more efficient in the area |<BR>| of heat retention. I translate ethnic slurs for Cuban |<BR>| refugees, I write award-winning operas, I manage time |<BR>| efficiently. Occasionally, I tread water for three days in |<BR>| a row. |<BR>| |<BR>| I woo women with my sensuous and godlike trombone
 |<BR>| playing, I can pilot bicycles up severe inclines with |<BR>| unflagging speed, and I cook Thirty-Minute Brownies in |<BR>| twenty minutes. I am an expert in stucco, a veteran in love, |<BR>| and an outlaw in Peru. |<BR>| |<BR>| Using only a hoe and a large glass |<BR>| of water, I once single-handedly defended a small village in |<BR>| the Amazon Basin from a horde of ferocious army ants. I |<BR>| play bluegrass cello, I was scouted by the Mets, I am the |<BR>| subject of numerous documentaries. When I'm bored, I build |<BR>| large suspension bridges in my yard. I enjoy urban hang |<BR>| gliding. On Wednesdays, after school, I repair electrical |<BR>| appliances free of charge. |<BR>+--------------------------------------------------------------------+<BR><BR>Is there a "trick"?<BR><BR>Thanks!<BR>-Ryan<BR><BR><BR><BR>-- <BR><BR>+-----------------------------+<BR>| ryan@the-summit.net |<BR>| http://www.the-summit.net
 |<BR>+-----------------------------+<BR>_____________________________________________________________<BR>Seattle Perl Users Group Mailing List <BR>POST TO: spug-list@pm.org<BR>SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list<BR>MEETINGS: 3rd Tuesdays<BR>WEB PAGE: http://seattleperl.org/<BR></BLOCKQUOTE><BR><p>&#32;

<font color="666666"><font size="2"><hr size=1>Sponsored Link</font></font><br><br>Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo -  
<a href="http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9133-16415&moid=4673">Calculate new house payment</a>