Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Text comparisons

by Vautrin (Hermit)
on Mar 24, 2004 at 19:21 UTC ( #339522=note: print w/replies, xml ) Need Help??


in reply to Text comparisons

Do you have:

use strict; use warnings;

at the top of your script? If you don't, try putting it in. If something is going wrong (i.e. the line you're reading in is undef), it will tell you. Also, can you post more of the script? There are a lot of possibilities for what is going wrong. For instance, if you do not have an open ("FILE", "< ./file") or die("Can't open the file $!"); and are just using open ("FILE", "< ./file"); you would always get an undef (or maybe a "") if you read in the lines.


Want to support the EFF and FSF by buying cool stuff? Click here.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-22 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?