develooper Front page | perl.beginners | Postings from October 2009

Re: Am I doing something really stupid?

Thread Previous | Thread Next
From:
cknipe
Date:
October 13, 2009 07:23
Subject:
Re: Am I doing something really stupid?
Message ID:
20091013162333.208566pk56pvtako@webmail1.konsoleh.co.za
>> foreach my $File (@Files) {
>>   print $File  "\n";
>
> This print statement is treating $File as a file handle.  It is similar to:
>
>   print STDERR "\n";

I saw the typo a few minutes after I sent the email (it always happens  
that way!).  At least I'm not loosing my mind.... yet :)

--
Chris





Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About