Clean the text from a multiline form

Discussion in 'Perl Misc' started by Vit, Jun 15, 2009.

  1. Vit

    Vit Guest

    Hi All,

    on a .cgi application, I get some data from a "multiline text form"
    and I like to process it as a singular line... is it possible???

    my $enquiry = $query->param("enquiry");

    how can I "reformat" the multitext line as a singular line???

    thanks all

    Vit
     
    Vit, Jun 15, 2009
    #1
    1. Advertising

  2. Vit

    j.keßler Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Vit wrote:
    > Hi All,
    >
    > on a .cgi application, I get some data from a "multiline text form"
    > and I like to process it as a singular line... is it possible???
    >
    > my $enquiry = $query->param("enquiry");
    >
    > how can I "reformat" the multitext line as a singular line???
    >
    > thanks all
    >
    > Vit

    You need to replace or strip any newline character.
    But it should normally not be neccessary, since it could mess up the input
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAko2GHUACgkQE++2Zdc7Ete4PACePwaNSEZf9ukMpkYeMlLcPP2f
    psYAnRspkBJ6n4HDj6VB3/gUSDs4I87t
    =M2LW
    -----END PGP SIGNATURE-----
     
    j.keßler, Jun 15, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cw
    Replies:
    1
    Views:
    631
    James J. Foster
    Jun 27, 2003
  2. Replies:
    8
    Views:
    523
  3. Jussi Piitulainen

    Re: trying to use regex(s) to clean up text

    Jussi Piitulainen, Sep 9, 2008, in forum: Java
    Replies:
    4
    Views:
    388
    Tom Anderson
    Sep 10, 2008
  4. js
    Replies:
    1
    Views:
    96
    Shawn Milo
    May 21, 2004
  5. dale zhang
    Replies:
    8
    Views:
    438
    Tintin
    Nov 30, 2004
Loading...

Share This Page