Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have used dummy names and dummy code (almost similiar to my code)... Thanks in advancemy $file = "/home/temp1/temp2/temp3/temp4/temp4/temp5/temp6/temp7/temp +8/temp9.tcl in config.tcl"; my $rawtext = "File not found.setting default $file in config.tcl."; autoformat($rawtext, {left=>0, right=>60}); output: File not found.setting default /home/temp1/temp2/t-emp3/temp4/temp4/te +mp5/temp6/temp7/temp8/temp- 9.tcl in config.tcl. with the above output a newline is also added. but actual output i need is: File not found.setting default /home/temp1/temp2/temp3/temp4/temp4/tem +p5/temp6/temp7/temp8/temp9.tcl in config.tcl. no hypens & no newlines.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question on Text::Autoformat
by jbrugger (Parson) on Jan 27, 2006 at 06:11 UTC |