pcouderc has asked for the wisdom of the Perl Monks concerning the following question:
My final print of $Report is sometimes empty. Moreover, in note(), the print of the value of $Report contains data of a previous excution of the script.my $Report=""; sub note { my ($titre,$texte) = @_; print STDERR "*update.pl(($titre,$texte)) \n"; my $Texte= '<H5>'.$titre.'</H5><P>'.$texte.'</P>'; $Report .=$Texte; print STDERR "*update.pl:$Texte\n[\n$Report\n]\n"; } ... note($title,$text); ... print STDERR "*update.pl: end \n[\n$Report\n]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Basic question
by liz (Monsignor) on Aug 20, 2003 at 09:58 UTC | |
by valdez (Monsignor) on Aug 20, 2003 at 10:06 UTC | |
by pcouderc (Monk) on Aug 20, 2003 at 10:43 UTC | |
by tye (Sage) on Aug 20, 2003 at 15:40 UTC | |
|
Re: Basic question
by Abigail-II (Bishop) on Aug 20, 2003 at 09:49 UTC | |
by pcouderc (Monk) on Aug 20, 2003 at 10:06 UTC | |
by Abigail-II (Bishop) on Aug 20, 2003 at 10:46 UTC | |
by tye (Sage) on Aug 20, 2003 at 15:35 UTC | |
by Abigail-II (Bishop) on Aug 20, 2003 at 15:44 UTC | |
| |
|
Re: Basic question
by pcouderc (Monk) on Aug 20, 2003 at 16:35 UTC |