Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-10-21 17:14 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (119 votes). Check out past polls.