Chandrakant Reddy wrote:
...
> print " Dev = $stat->dev \n";
> 
>  but the output is comming like this
> ---OUTPUT --
> 
> Dev = File::Stat=ARRAY(0x150a20)->dev

Method calls don't interpolate in double quotes. So you need to write it as:

   print " Dev = ", $stat->dev, "\n";

Or use this trick,

   print " Dev = @{[$stat->dev]}\n";

(but don't do that :~)

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


Reply via email to