Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: find acronyms in a text

by apl (Monsignor)
on Jul 23, 2009 at 12:50 UTC ( [id://782668]=note: print w/replies, xml ) Need Help??


in reply to find acronyms in a text

Please consider replacing
     die "cannot open the file";
with
     die "cannot open file '$file': $!\n";

This will enable you to see what file the user asked for, and why it couldn't be opened.

Obviously this isn't directly associated with you problem, or you would have seen your die. It is, however, a good habit to develop. (Just like use strict; use warnings;)

Replies are listed 'Best First'.
Re^2: find acronyms in a text
by arun_kom (Monk) on Jul 23, 2009 at 13:02 UTC
    good advice ... if you also want to see which line number your script died on, avoid placing \n after $! in the die statement.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found