Hi,
I got an idea after your suggestion that I should explore the Text::Wrap
module. If I can get perl to split the string after every so many
characters, I'll have achieved what I want. Is that possible?
jagdish eashwar
On 6/20/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
Send Perl-Win32-Users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Perl-Win32-Users digest..."
Today's Topics:
1. control characters in perl (jagdish eashwar)
2. RE: control characters in perl (Michael Higgins)
3. RE: control characters in perl (Chris Wagner)
----------------------------------------------------------------------
Message: 1
Date: Tue, 19 Jun 2007 21:08:21 +0530
From: "jagdish eashwar" <[EMAIL PROTECTED]>
Subject: control characters in perl
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/perl-win32-users/attachments/20070619/143b2071/attachment-0001.html
------------------------------
Message: 2
Date: Tue, 19 Jun 2007 09:40:48 -0700
From: "Michael Higgins" <[EMAIL PROTECTED]>
Subject: RE: control characters in perl
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of jagdish eashwar
> Sent: Tuesday, June 19, 2007 8:38 AM
> To: [email protected]
> 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,
--
. . . . . .... . . . .. .. . . . .``.
.`. .`. . . .` . . . . .` .` . .`. . `.
. ` . . .`. .`` .```. . . .. . .. . . `. `.
. . . . `. .... . . . `..` `..` . . . `..`
------------------------------
Message: 3
Date: Tue, 19 Jun 2007 13:43:36 -0400
From: [EMAIL PROTECTED] (Chris Wagner)
Subject: RE: control characters in perl
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
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"
00000100
------------------------------
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
End of Perl-Win32-Users Digest, Vol 11, Issue 10
************************************************
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs