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

Why does this happen?

by dusk (Friar)
on Apr 04, 2001 at 06:54 UTC ( #69535=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    my @matching = qw/disk duck deck/;
    
    if ($input eq $matching[0..2]) {die "bastard\n"};
    
  2. or download this
    Argument "" isn't numeric in array element at ./b line 10, <> line 1.
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    my @matching = qw/disk duck deck/;
    
    if ($input eq $matching[0]) {die "bastard\n"};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-01-29 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?