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

Re^2: [OT]: Re^9: What's the right way to write a method which returns one line at a time from a file?

by AnomalousMonk (Archbishop)
on Nov 26, 2020 at 10:07 UTC ( [id://11124254]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
                 # When their name is...                Address them as...
    my $salute = $name eq $EMPTY_STR                  ? 'Customer'
               : $name =~ m/(.*), \s+ Ph[.]?D \z /xms ? "Dr $1"
               :                                      ? $name
               ;
    
  2. or download this
    Win8 Strawberry 5.8.9.5 (32)  Thu 11/26/2020  5:03:36
    C:\@Work\Perl\monks
    ...
    print $salute;
    ^Z
    xyzzy
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-24 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found