Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: NashTrump
  • Content: Threads
  • Order by date
  1. NashTrump

    Cant extract links!!

    Hi there, Im extracing links from two betting websites. One of them i can do with the code i have written, however the other doesnt return any data when i parse the website. two two websites which are the $url's are: www.betfred.com/betting/fastbetfind.asp?sKeywords=Match...
  2. NashTrump

    MultiThreading - no idea how to begin!!

    Hi All, Im new to multithreading!! I have created two files which access a database, each extracts a large amount of lines relating to a certain word and then processes each line. As its a huge task im looking into multithreading. However i have heard i must be careful to make sure that my...
  3. NashTrump

    Array or a Hash???

    Hi, Im gathering a selection of pieces of information and i want to look at each 'selection' in turn... for example: Im gathering sets like below: Url NameA AmountA NameB AmountB NameB AmountB I could possibly gather up to 5 or 6 different sets. In each set i want to compare amounts from...
  4. NashTrump

    Error in syntax

    Hi there, Im building a small psub procedure to do maths. Now its a very simple procedure however im getting errors i cant explain: Heres the code: my $barone = 10; my $bartwo = 5; my $mathage = maths($barone, $bartwo); line 269 Sub maths{ line 270 ($betone, $bettwo); line 271...
  5. NashTrump

    Cant get Content from URL!

    hi Guys, Im trying to look at the html behind a website by using $mech->get($url) command using the use WWW::Mechanize; Below is the code im using and an example output. $mech->get($url); $mech->success or die "Can't open page\n"; $content = $mech->content; print...
  6. NashTrump

    Stripping String of \n

    Hi There, Im looking at some data and extracting the bits i need using perl. Im getting quite alot of success considering ive only started looking at perl in the last month. However when i extract a certain string from a html page i always get things like \n and \r at the end of the string...
  7. NashTrump

    String found where operator expected

    Hi Guys, Im trying to build a small test function. Im (trying to) passing a variable to the function, then have that function check the string to see if it matches anything. Once the check has finished, i want it to pass a variable back. Heres my code: sub Check{ my ($CheckDetail) = @_...
  8. NashTrump

    Activating Script on another Url

    Hi there, Ive been learning perl for a while now, and im trying to teach myself how to scrape websites etc. As bookmakers have a great deal of information on their sites i started there. However I noticed they have a script which changes the display of odds. www.stanjames.com The change...
  9. NashTrump

    Extracting only Certain Links from a search

    hi there, I need to search a website and only extract certain links from it. i want to search for the Url containing something like: http://www.stanjames.com/betting/?gi Also some of the links are about two clicks away from the start URL, how do i go into links and search that the linked...
  10. NashTrump

    Passing variables between functions

    Hi all Im fairly new to perl so bear with me! :) Just wondered if someone can help me.. Ive got two perl subs and want to pass variables from one to the other and then return a result. IE: 1st sub contains this code : @linkage = findlinkage($url,$required,$title); The findlinkage sub is...
  11. NashTrump

    MYSQL connection from PERL

    Hi there, Im new to perl. Ive manged to install perl and some modules... i want to create a connection to mysql. Ive install DBI and DBD-Mysql However when i try to run the below script: #!/perl/bin/perl use Mysql; $database = 'sphider_db'; $user = 'root'; $password = ''; $dbh =...
  12. NashTrump

    Listing Fields in Report

    I am trying to create a report from two tables in a database. The two tables i have are sales and purchases. The fields im taking from each are Suppliers, Model, Date, and Qty I want to create a report that groups the results per suppiler, but when i do i get a report of numbers!! IE...

Part and Inventory Search

Back
Top