Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Reversing of list through STDIN

by Lawliet (Curate)
on Jul 05, 2013 at 17:44 UTC ( #1042751=note: print w/replies, xml ) Need Help??


in reply to Reversing of list through STDIN

Au contraire, it seems to, indeed, reverse the order of the lines:

$ perl rev.pl Enter some lines, then press Ctrl-D: test 123 done

Output:

done 123 test

Perhaps you are interpreting the meaning of "reverse" differently. What, exactly, are you expecting for output?

(By the way, it is good practice to use warnings; use strict; in your perl programs. Doing so will save you time in the long run by catching silly mistakes while improving your coding habits.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042751]
help
Chatterbox?
[Corion]: On the upside, I can now remove larger swathes of web scraping from Finance::Bank:: Postbank_de and replace them with JSON-fetching instead, which seems like a plus :)=
[marto]: neat :)
[Corion]: marto: Yeah - more involved will be the ways to automatically trigger money transfers etc. , but I didn't implement that in the old world either, so it's not really a priority for the new world :)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2018-07-16 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?