un <!--EZCODE LINK START--><a href="http://forum.html.it/forum/showthread.p ... 455">altro post inserito in un forum cgi perl ha ricevuto (dal moderatore) questa risposta<br>
<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>Se mandi sul client una stringa cosi`: <br>
"<b>T</b>ext" <br>
viene visualizzata come vuoi tu. <br>
<br>
Se poi il problema e` il montaggio della stringa sul server inPerl, devi usare l'operatore binario . (punto<hr></blockquote><!--EZCODE QUOTE END--</a><!--EZCODE LINK END-->
<p></p><i></i>
Regular Expressions
Moderatori: Supervisor, Moderatori Software e Programmazione
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: sempre sul tema
A questo punto non commento neanche più. Vai avanti in soliloquio, io aspetto che qualcuno risponda alla domanda, non alle variazioni sul tema. Punto
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>God saves, but Buddha makes incremental backups</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>God saves, but Buddha makes incremental backups</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
...
intanto mi scuso per non aver chiuso il tag nel post precedente e poi inserisco quest'unico esempio trovato nella pagina che mi hai segnalato<br>
<!--EZCODE CODE START--><pre> Let me end with a brief code fragment which illustrates how one might use Perl to automate a text-manipulation task. This code uncompresses a file specified on the command line, runs a search-and-replace on the file, and then re-compresses it.
#!/usr/bin/perl -w
$file = $ARGV[<!--EZCODE EMOTICON START 0] --><img src=http://www.ezboard.com/images/emoticons/alien.gif ALT="0]"><!--EZCODE EMOTICON END--> ;
system( "uncompress $file" );
open( CURRENTFILE, "$file"<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> ;
open( OUTFILE, ">outfile" );
while ( <CURRENTFILE> ) {
$_ =~ s/ he / she /g;
print OUTFILE $_;
}
close( CURRENTFILE );
close( OUTFILE ); </pre><!--EZCODE CODE END--><br>
<br>
leggendo il testo - seppur distrattamente - se ne evince che si tratta di comandi per la ricerca e sostituzione di stringhe, piu' che di un sistema per concatenarle e cmq - se non erro - rischi di creare una pagina che - per risolvere una formula - fa avanti e indietro tra il client ed il server
<p></p><i></i>
<!--EZCODE CODE START--><pre> Let me end with a brief code fragment which illustrates how one might use Perl to automate a text-manipulation task. This code uncompresses a file specified on the command line, runs a search-and-replace on the file, and then re-compresses it.
#!/usr/bin/perl -w
$file = $ARGV[<!--EZCODE EMOTICON START 0] --><img src=http://www.ezboard.com/images/emoticons/alien.gif ALT="0]"><!--EZCODE EMOTICON END--> ;
system( "uncompress $file" );
open( CURRENTFILE, "$file"<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> ;
open( OUTFILE, ">outfile" );
while ( <CURRENTFILE> ) {
$_ =~ s/ he / she /g;
print OUTFILE $_;
}
close( CURRENTFILE );
close( OUTFILE ); </pre><!--EZCODE CODE END--><br>
<br>
leggendo il testo - seppur distrattamente - se ne evince che si tratta di comandi per la ricerca e sostituzione di stringhe, piu' che di un sistema per concatenarle e cmq - se non erro - rischi di creare una pagina che - per risolvere una formula - fa avanti e indietro tra il client ed il server
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
risposta
beh, io ne ho dedotto, <!--EZCODE ITALIC START--><em>basandomi sull'esempio che hai postato</em><!--EZCODE ITALIC END-->, che quello che cerchi <!--EZCODE ITALIC START--><em>non e'</em><!--EZCODE ITALIC END--> la risposta al problema che ci hai posto e ti ho proposto delle soluzioni alternative piu' facili e logiche e te le ho motivate<br>
<br>
naturalmente questa e' una mia discutibilissima opinione di una che notoriamente non ne capisce un tubo, ma che ha solo la cattiva abitudine di impicciarsi <!--EZCODE EMOTICON START :| --><img src=http://www.ezboard.com/images/emoticons/indifferent.gif ALT=":|"><!--EZCODE EMOTICON END--> <br>
<br>
fine del soliloquio e buona fortuna<br>
<br>
h&k<br>
<br>
mb<br>
===
<p></p><i></i>
<br>
naturalmente questa e' una mia discutibilissima opinione di una che notoriamente non ne capisce un tubo, ma che ha solo la cattiva abitudine di impicciarsi <!--EZCODE EMOTICON START :| --><img src=http://www.ezboard.com/images/emoticons/indifferent.gif ALT=":|"><!--EZCODE EMOTICON END--> <br>
<br>
fine del soliloquio e buona fortuna<br>
<br>
h&k<br>
<br>
mb<br>
===
<p></p><i></i>





