Re: Different way of getting Standard input
- From: anders.u.persson@xxxxxxxxx (Anders)
- Date: Mon, 31 Dec 2007 03:58:27 -0800 (PST)
On 31 Dec, 08:45, prabu.ayyap...@xxxxxxxxx (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
.
- References:
- Different way of getting Standard input
- From: Prabu Ayyappan
- Different way of getting Standard input
- Prev by Date: Re: Different way of getting Standard input
- Next by Date: using scalar as an operator
- Previous by thread: Re: Different way of getting Standard input
- Next by thread: using scalar as an operator
- Index(es):
Relevant Pages
|