Balawoo has asked for the wisdom of the Perl Monks concerning the following question:
I would like to learn to loop on my variable and convert end of line with HTML tag like my $text ="Sur toutes les ressources « Usine » on suivra les valeurs suivantes :#!/usr/bin/perl -w use warnings; use strict; use Spreadsheet::Read 'ReadData'; use Encode 'decode'; use XML::LibXML; use Text::FixEOL; no warnings; my $INFILE = 'TestPGR.xlsx'; my $ENCODING = 'MacRoman'; my $OUTFILE = 'TestPGR.xml'; my %FIELDS = ( 1=>'docid', 2=>'title', 3=>'version', 4=>'revision', 5=>'node_order', 6=>'description', 7=>'status', 8=>'type', 9=>'expected_coverage', ); my $text = "Sur toutes les ressources « Usine » on suivra les valeurs +suivantes : • Temps de préparation machine (Heures machine des Arrêts programmés)" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newbie - convert carriage return in a variable
by hippo (Archbishop) on Feb 17, 2019 at 16:44 UTC | |
by Balawoo (Novice) on Feb 17, 2019 at 17:50 UTC | |
by poj (Abbot) on Feb 17, 2019 at 18:09 UTC | |
by Balawoo (Novice) on Feb 17, 2019 at 19:06 UTC |