I'm building a web-based database query tool. The results are displayed in a gridview on the page. I'm trying to offer the users the ability to print *only* the gridview in plain formatting. What I was advised by senior programmers at work to do is to load the gridview results into the...
Anyone know of any good guides on Perl and Dynamic SQL queries? I'm writing a huge application and I've decided that Dynamic is the best way to go. If anyone knows of any or could offer any help, please let me know.
I have built a GUI in Tk that is supposed to take user input and search an MS SQL database. I am about 3/4 complete, however, I cannot seem to get the script to search for what the user wants. I need a way to actually assign what is entered into the Entry box (or multiple Entry boxes) to a...
At work I am expected to create GUIs with wxPerl, however, I am not allowed by the administrators to install anything on the C: drive, only the U: drive. It seems though that wxPerl only wants to install to the C: drive and the install fails every time with a Permission Denied, even using the...
The below code searches for the word 'located' in a text file. When it finds the word, it looks for 1 to 10 words after it, extracts the string, and writes the string to a file. The problem I am having is that the current script stops looking for up to the 10th word when it reaches a line...
I have a large text document that contains multiple reports in it. I want to be able to extract each report from the large text file and write them all to their own files. For example, say the text of the large file looks like this:
Report 1
this is just some random text for example purposes...
Ok, so the code below uses the re module to find a word 'located'. After it finds the word, it counts up to 10 words after it and extracts all of the words as one string. The only problem I am encountering is that I can't get the script to recognize a new line break, go to the next line, and...
Thanks to some help from PaulTEG and others, I have finally gotten my extraction program to extract the words I want, with the exception that I cannot extract as many words as I want after the word I want is found.
Basically, I am matching the word 'located' in a text document and I want to...
Ok so I wrote a small script that reads a file and extracts the <b>lines</b> that contain the matches I want to extract but I cannot seem to find a way to extract the matches out of those lines. When I run the script I get the following:
1
randomtext randomtext randomtext USER ID: 123456...
Hi guys. I'm very new to Perl. Making the switch from Python (cringe). The reason is because Perl seems to have much better regex capabilities than Python does and I need to really get started on this data extraction script my boss wants. However, I am finding it hard to do something that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.