Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Determining what line a filehandle is on

by lindex (Friar)
on Jul 08, 2001 at 11:14 UTC ( #94809=note: print w/replies, xml ) Need Help??


in reply to Determining what line a filehandle is on

hey I might as well throw in my two cents worth of code ..
#!/usr/bin/perl $|++ use strict; use warnings; open(my($fd),q(/usr/dict/words)) or die($!); print qq(\r$.) while(<$fd>); print qq(\n);

Brought to you by that crazy but lovable guy... lindex

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://94809]
help
Chatterbox?
[Discipulus]: The red sphinx is about Rechilieu, absolutely thrilling
[erix]: thanks, Discipulus - I got them lined up at gutenberg :)
[erix]: I red the musketeers and Monte Cristo but both a very long time ago (many decades ago)
[erix]: *read
[Discipulus]: dunno if a young people can well understand the deep of Montecristo

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-05-24 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?