Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Why does this happen?

by premchai21 (Curate)
on Apr 04, 2001 at 07:31 UTC ( #69538=note: print w/replies, xml ) Need Help??


in reply to Why does this happen?

A slow but possible and fun solution: Quantum::Superpositions. Tested; compiles, runs, and works correctly (I think). Needs Class::Multimethods.
#!/usr/bin/perl use Quantum::Superpositions; print "What is your insult? "; chomp (my $input = <>); my @matching = qw/disk duck deck/; die if ($input eq any(@matching)); # could also use @matching[0..2]
:-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2022-01-28 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?