Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-12-18 22:34 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (500 votes). Check out past polls.