RE: control characters in perl

2007-06-19 Thread Chris Wagner
At 09:40 AM 6/19/2007 -0700, Michael Higgins wrote:
>> Do word processors insert any character for word wraps like 
>> they do for new lines(\n)? If yes, what is the corresponding 
>> perl control character? I need to split a multi line string 
>> from a word table cell at the word wraps. 

Not that I know of.  AFAIK they calculate the wrap everytime.  Check out the
Text::Wrap module.




--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"

0100

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: control characters in perl

2007-06-19 Thread Michael Higgins
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of jagdish eashwar
> Sent: Tuesday, June 19, 2007 8:38 AM
> To: perl-win32-users@listserv.activestate.com
> Subject: control characters in perl
> 
> Hi,
> 
> Do word processors insert any character for word wraps like 
> they do for new lines(\n)? If yes, what is the corresponding 
> perl control character? I need to split a multi line string 
> from a word table cell at the word wraps. 
> 
> jagdish eashwar
> 
> 

Some of the more commonly used ASCII codes:
Chr(9) = tab
Chr(11) = manual line break (shift-enter)
Chr(12) = manual page break
Chr(13) = vbCrLf (return)
Chr(14) = column break
Chr(30) = non-breaking hyphen
Chr(31) = optional hyphen
Chr(32) = space
Chr(34) = quotation mark
Chr(160) = nonbreaking space
For more see also "Chr$" under VBA Help.

USAGE EXAMPLE: Selection.TypeText text:=Chr(12)

see: www.jojo-zawawi.com/code-samples-pages/code-samples.htm 

HTH,

--
   . .   .   .   .  .   .   . .. ...   .   .  .``.
   .`. .`.   .   . .`   .   .   .   .   .` .`  .   .`. .  `.
   .  `  .   .   .`..`` .```.   .   .  ..  .  ..   .   .  `.`.
   . .   .   .  `.  .   .   .`..`   `..`   .   .   .  `..`
 


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs