doppio
12-14-2004, 02:18 AM
hello!,
I have this sub but not work...why?
Sub stampa {
my $view = shift;
if ($view eq 'ONAIR') {
$file = /ONAIR/index2.html;
$OUT = 'FILE_OUT';
}
elsif ($view eq 'STANDBY) {
$file = /STANDBY/index2.html;
$OUT = 'FILE_OUT';
}
elsif {
$OUT = 'STDOUT';
}
# Apro il file per scrivere
open (FILE_OUT, ">$file");
# Se il tipo di visualizzazione NON è onair o standby
# Stampo a video
print $OUT $pagina;
# chiudo il file aperto
close(FILE_OUT);
}
thank
I have this sub but not work...why?
Sub stampa {
my $view = shift;
if ($view eq 'ONAIR') {
$file = /ONAIR/index2.html;
$OUT = 'FILE_OUT';
}
elsif ($view eq 'STANDBY) {
$file = /STANDBY/index2.html;
$OUT = 'FILE_OUT';
}
elsif {
$OUT = 'STDOUT';
}
# Apro il file per scrivere
open (FILE_OUT, ">$file");
# Se il tipo di visualizzazione NON è onair o standby
# Stampo a video
print $OUT $pagina;
# chiudo il file aperto
close(FILE_OUT);
}
thank