Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re: Continued Fractions

by Fastolfe (Vicar)
on Nov 16, 2000 at 21:13 UTC ( #41997=note: print w/replies, xml ) Need Help??

in reply to Re: Continued Fractions
in thread Continued Fractions

Why would <STDIN> differ from <> in this respect? Hitting an EOF character should work the same in either case. The only difference between <STDIN> and <> is that the latter will step through the lines of any files specified on the command line:
$ perl $ perl file1 file2 filen
The first reads from the STDIN, but the second only references the contents of each of the files.

Replies are listed 'Best First'.
Re: Re: Re: Continued Fractions
by fundflow (Chaplain) on Nov 16, 2000 at 21:25 UTC
    Yup, little difference indeed.

    The emphasis was on the || exit thing. Without it the script will have to be killed explicitly, and perl < my_prepared_input > theoutput will loop forever.

    Anyway, it was just a small suggestion (and a good practice in general)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://41997]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-03-20 08:19 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (248 votes). Check out past polls.