Sismetic has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to ask what does it shows me : "Filehandle $ARCHIVO opened only for output at Char.pl line 9." in the following code:
#!/usr/bin/perl use warnings; use strict; sub Take_Txt{ my $archivo = shift; open my $ARCHIVO, '>', $archivo or die $!; my @lineas = <$ARCHIVO>; close $ARCHIVO; shift(@lineas); return @lineas; }
Thanks for answering.
Oh Thanks,I didnt notice,thanks for answering.
Oh,sorry to bother again, but I did what u said, and it doesnt show anything although I have gave it parameters('mon.txt') after finishing the subroutine,but it doesnt show me anything(I have checked that it does have something).Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Filehandle opened only for output error
by JavaFan (Canon) on Aug 21, 2009 at 16:34 UTC | |
|
Re: Filehandle opened only for output error
by toolic (Bishop) on Aug 21, 2009 at 17:13 UTC | |
|
Re: Filehandle opened only for output error
by AnomalousMonk (Archbishop) on Aug 21, 2009 at 16:35 UTC | |
|
Re: Filehandle opened only for output error
by ack (Deacon) on Aug 21, 2009 at 16:38 UTC | |
by Sismetic (Initiate) on Aug 21, 2009 at 16:43 UTC | |
by ikegami (Patriarch) on Aug 21, 2009 at 17:16 UTC | |
by baxy77bax (Deacon) on Aug 21, 2009 at 17:07 UTC |