Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: <> oddity ?

by hdb (Monsignor)
on Mar 27, 2013 at 10:17 UTC ( #1025667=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<>)
    
  2. or download this
    while(<>) {
        print;
    }
    
  3. or download this
    $ ./weird.pl sample.txt
    
    ...
    or
    
    $ cat sample.txt | ./weird.pl 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-06-20 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?