Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: Find the shortest word in the English Language with: a b c d e f

by Eily (Monsignor)
on Jul 07, 2018 at 07:52 UTC ( [id://1218082]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Find the shortest word in the English Language with: a b c d e f
in thread Find the shortest word in the English Language with: a b c d e f

I'm not accustomed to needing to specify the argument within the code

Since the discussion started as a comparison against python, I wanted to play fair-ish and have code that actually does the same thing (technically, the same thing as the perl version in the OP). That's why I didn't include the glob version in the first place, or didn't print the result

Of course, looking closely only one of your loops needs to be of the 'while' variety

Nice catch! I'm far too used to using while for files to have seen this one :-).

  • Comment on Re^5: Find the shortest word in the English Language with: a b c d e f

Log In?
Username:
Password:

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

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

    No recent polls found