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

Re: Detecting last line and blank line

by 1nickt (Canon)
on Nov 07, 2017 at 00:40 UTC ( [id://1202894]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict; use warnings;
    use feature qw/ say /;
    ...
    bar
    baz
    qux
    
  2. or download this
    $ perl 1202892.pl
    the last line is qux
    
  3. or download this
    use strict; use warnings;
    use feature qw/ say /;
    ...
    say "the last line is $last_line";
    
    __END__
    
  4. or download this
    $ perl 1202892-2.pl
    the last line is m
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found