Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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 menu..in 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: http://65.40.136.120/~files/PERL you will need the railcardata.txt the railcarEntry.pm and sortitbeta.pl 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
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.


    Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-08-21 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (135 votes), past polls