Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Perl program will not retrieve data from file

by PilotinControl25 (Initiate)
on Sep 20, 2012 at 21:12 UTC ( #994758=perlquestion: print w/replies, xml ) Need Help??
PilotinControl25 has asked for the wisdom of the Perl Monks concerning the following question:

I am having trouble retrieving the data from the database after giving the criteria to search the database it does not pull the records it just exits..the data is suppose to be pulled and shown on the screen and then exits to the this case it just exits the program..I have no issues writing the data to the file..If you can help thanks in advance for the help. I apologize for my ignorance I have uploaded all the files that need to be viewed here: you will need the railcardata.txt the and the program will run and when you select 1.) Railcar Management and then Select View All Railcars it will ask the criteria and you can select what you want when you do it should pull up all the items in the file that match say Road Name: you type conrail it should display the data...and it doesnt it just exits....entering data into the database works just fine Thanks

  • Comment on Perl program will not retrieve data from file

Replies are listed 'Best First'.
Re: Perl program will not retrieve data from file
by davido (Archbishop) on Sep 20, 2012 at 21:24 UTC

    You need to do a little more work. This isn't a one-on-one email support forum.

    First: Are you accessing a database, or reading a file? Your question is unclear on that point.

    Second: Post 25 lines of code that demonstrates your code's inability to retrieve data. Be sure to replace actual database login credentials with some placeholders in your post, for your own security. The code needs to be capable of compiling, unless your question is specifically about why it's not compiling.

    Third: Post what the expected output is, and what output you're getting (including error messages). If you're not getting any error messages, investigate why.

    Once you're ready to provide that information we'll be able to provide useful help.

    Update: So you have now posted code. But instead of reducing your problem down to 25 lines of runnable code that we can use to demonstrate to ourselves the problem, you dumped on us 160 lines of code that doesn't compile. Laziness demotivates many of us.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994758]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2018-01-20 08:21 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.