Ask a Question related to PERL Miscellaneous, Design and Development.
-
Tux #1
Splitting text from a database table
I have some text which I have extracted from a database table, this contains
embedded CR/LF pairs, i.e. \r\n.
I would like to split the text into separate strings, breaking at the CR/LF
pair, but I just cannot work out how to do it. Would anybody take pity on a
newbie and give me a clue.
--
Colin Walls
Email: [email]Colin.Walls@murorum.demon.co.uk[/email]
Web: [url]http://www.murorum.demon.co.uk[/url]
Phone: 01625 535123
Mobile: 07765 175829
Tux Guest
-
Problem with text splitting into separate pieces
This seems to be related to opening older (v.9) Illustrator files using CS. When I open files containing text, I get the default message asking to... -
Import text file into database table
I need to build a web page that allows the user to select a text file and click a button to import the file into a database table. Does anyone... -
[PHP] splitting content from database into pages again
function page_content($content,$limit = 10,$page) { $limit=20; $afile = explode("\r\n", $content); $maxline = count($afile); // count... -
splitting content from database into pages again
hi guys regarding my question yesterday here is exactly what i want to do http://www.evilwalrus.com/articles.php?aid=42 this is obvioiusly... -
Splitting a Database
To All on Access Discussion Forum: I have already split my database. Now I just added a new table to the back-end, but it is not linked to the... -
Greg Bacon #2
Re: Splitting text from a database table
In article <bdsj7n$jqp$1$8302bc10@news.demon.co.uk>,
Tux <colin@murorum.demon.co.uk> wrote:
: I have some text which I have extracted from a database table, this
: contains embedded CR/LF pairs, i.e. \r\n.
:
: I would like to split the text into separate strings, breaking at the
: CR/LF pair, but I just cannot work out how to do it. Would anybody
: take pity on a newbie and give me a clue.
What have you tried? Why not something such as the following?
@lines = split /\r\n/, $chunk;
Hope this helps,
Greg
--
When Galileo turned his telescope toward the heavens, and allowed Kepler to
look as well, they found no enchantment or authorization in the stars, only
geometric patterns and equations. God, it seemed, was less of a moral
philosopher than a master mathematician. -- Neil Postman
Greg Bacon Guest



Reply With Quote

