Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: mixed case with match

by Anonymous Monk
on Sep 21, 2020 at 19:44 UTC ( #11122028=note: print w/replies, xml ) Need Help??


in reply to mixed case with match

Relevant to the functionality but not to the OP's question:

Built-in variable $. is the number of lines read from the current (i.e. last-read) file handle. So:

while ( <> ) { last if m/perl/i; } print "There were $. lines until I found perl\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11122028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-10-28 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (259 votes). Check out past polls.

    Notices?