Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: $. - smarter than you might think

by shmem (Chancellor)
on Jun 22, 2006 at 22:35 UTC ( #557033=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    <DATA>;
    ...
    line 1
    line 2
    line 3
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    line 1
    line 2
    line 3
    
  3. or download this
    1 #!/usr/bin/perl
    2 
    ...
    7 line 1
    8 line 2
    9 line 3
    
  4. or download this
           Using the "__DATA__" token creates an implicit filehandle to th
    +e file
           that contains the token.  It is the program's responsibility to
    + close it
           when it is done reading from it.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2021-05-07 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (91 votes). Check out past polls.

    Notices?