Remove linebreaks from a XML file using Perl

Discussion in 'Perl Misc' started by yann.pambou, Nov 21, 2005.

  1. yann.pambou

    yann.pambou Guest

    Hello,

    Would anyone have a sample Perl script to remove line breaks in a XML
    file?

    Thanks,

    Pav
     
    yann.pambou, Nov 21, 2005
    #1
    1. Advertisements

  2. Ask Pambouy2/Yanis, he's at the same IP address as you (67.83.32.65).

    gtoomey
     
    Gregory Toomey, Nov 21, 2005
    #2
    1. Advertisements

  3. A simple

    s/\n//sg;

    should do the job

    jue
     
    Jürgen Exner, Nov 21, 2005
    #3
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.