On 31 Dec, 08:45, [EMAIL PROTECTED] (Prabu Ayyappan) wrote:
> Hi All,
>
> What is the difference in Accepting the following form of standard input?
>
> 1) $a = <STDIN>;
> 2) $b = <stdin>;
> 3) $c = <>;
>
> Now check,
> print $a $b $c;
>
> What is actually happening?
> Will this be written to some standard input file?
> If so In windows where this will be written?
>
> Thanks,
> Prabu.M.A
>
>       
> ___________________________________________________________________________­_________
> Never miss a thing.  Make Yahoo your home page.http://www.yahoo.com/r/hs

3 diffrent way of writing the same thing, a lot of time PERL have more
than one way of doing things.
I have learn to write
<STDIN> upper letters to show it is a stream

You have 3 standard streams (without open anything)
a. STDIN (Defaults reads from keybord
b. STDOUT (Default write to the screen)
c. STDERR (Defaults write to the screen to)

STDOUT and STDERR have a mening that you allways write errormessage to
STDERR and can
redirect it to eg. a errorfile.

IF you haven't redirect STDIN it reads from KEYBORD to MEMORY and
don't give you any file
that you can use, if you like to save data open a file and write alla
data to it

// Anders


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


Reply via email to