On 12/17/07, ciwei2103 <[EMAIL PROTECTED]> wrote:

> Can somebody enlighten me what I'm doing wrong?

> my $input = $ARGV[0];
>
> my @devices =  <$input>  ;

$input is a string, since it comes from @ARGV; but you're using it as
if it's a filehandle. Do you need open()? Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to