Re: talking to Perl for a text-cleanup.

From: Date: Tue, 15 Apr 2003 17:12:24 +0000
Subject: Re: talking to Perl for a text-cleanup.
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-143983@lists.php.net to get a copy of this message
On (15/04/03 11:26), John Nichel wrote: > I understand what you're trying to do. What I was asking is how do you > pass the message to the perl if you were actually doing this via command > line right now. Do you pass it a file, a string, something else? > oh, well, I would do something like mysql -e commandfile | perl -MText::Autoformat -e'autoformat' as that particular text (the email) is within a MySQL db when I access it from a PHP page. > julien Beauviala wrote: > >On (15/04/03 11:03), John Nichel wrote: > > > >>How do you normally pass it? > > > > > >I don't, that's what I'm after. > > > >Basically I want to do the same thing as the following : > > > >$somefield = "bla blabla bla bla bla bla bla bla bla bla bla bla bla bla > >bla bla bla bla "; > >$cleantext = wordwrap($somefield, 63); > >echo $cleantext; > > > >but using perl -MText::Autoformat -e'autoformat > >instead of > >wordwrap. > > > >I hope it's clearer. > > > >j. > > > > > > > > >

« previous php.general (#143983) next »