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 SkipVought 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: sulfericacid
  • Order by date
  1. sulfericacid

    MySQL/DBI

    I am trying to venture into the world of perl databases, specifically MySQL. Problem is, even with the few books the library has I am having problems finding anything I can understand. It looks like most of the books are aimed towards people who already have a little knowledge in it. I...
  2. sulfericacid

    Tracking how long ago something happened

    Ok everyone, I don't care how much help you give me on this one. If you have a premade script already, kudos for everyone! I have a time saved in a hash which I want to compare with whatever the time; is now. time; is only done by seconds so I need a way for this script: foreach (keys %db) {...
  3. sulfericacid

    Simple hangman game

    It happens every once in a while where you describe a project and a person or two takes it upon themselves to do the entire thing. I admit it does take the fun out of doing it, I personally don't want to have a script I can't call my own-- own in which I built from the grounds up. With that...
  4. sulfericacid

    Simple hangman game

    Thanks so much for your help and for the script! I tested it and it works great! I can't really use it though, there are way too many things in it I don't understand and I didn't want a complete rewrite (wanted to be able to say "hey look what I made!") :). I will surely use this as...
  5. sulfericacid

    Simple hangman game

    I was wondering if you could help me figure out what's wrong with the script below. I can't get it to the point where they guess a 2nd time and get another valid character right, it adds it to $known. It's only doing one s/// which is the latest one instead of all of them. Ie: Secret word is...
  6. sulfericacid

    Thumbnails

    Does anyone know of another module or another way to create image thumbnails other than Image::Magick? Image::Magick looks like a pain to install and it's a little much if I'm just going to use it for a small program. Are there any other ways? Thanks "Age is nothing more than an...
  7. sulfericacid

    if/subs isn't working

    This is the first time I had to use subroutines, that's why I didn't know I had to pass things to them. But that makes me wonder, why would my $num; if (param('upload1') { $num++; &dirty_worl; } work when my example above didn't? I got it to work now, thanks for your help! "Age is...
  8. sulfericacid

    if/subs isn't working

    The script below was over 200 lines earlier. I posted everything in the sub into each if originally and thought it was too messy and decided to try and shorten the script. My idea was to make all the real processing instructions or whatever you want to call it inside the subroutine and just...
  9. sulfericacid

    Regex

    Ok, I can't get /anything/ to print while trying to use: #!/usr/bin/perl -w use strict; use CGI qw/:standard/; use HTML::Tree; use LWP::Simple; print header, start_html('test printing'); my $cnt; until ($cnt eq &quot;2&quot;) { $cnt++; print &quot;Current page count: $cnt<br>&quot;; my...
  10. sulfericacid

    Regex

    I'll try that out on my script to see what it does (I just tested it as-is. &quot;Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
  11. sulfericacid

    Regex

    Only problem is, I'm parsing a website so I can't define the variables like you did. I have to parse EVERYTHING through regex and I need to merge the $interval with the current regex I'm using which is: m/([^:]+): (.+)\((\d+) (?:seconds|minute|minutes|hour|hours|day|days) ago\)/...
  12. sulfericacid

    Regex

    This is similar to my last post but I've spent the night fiddling and have different questions/better way to explain the question I had earlier. Test print: aaron: hi there everyone!! (1 second ago) (<br> in HTML) someone else: I am writing this as a test (23 seconds ago)(br) screw up user: I...
  13. sulfericacid

    HTML::Tree

    I was wondering if someone could help with a free HTML::Tree questions and a regex question. I'm using: use strict; use CGI qw/:standard/; use HTML::Tree; use LWP::Simple; print header, start_html('test printing'); my $count; until ($count eq &quot;120&quot;) { $count++; my $funky =...
  14. sulfericacid

    db sorting

    I'm using DB tree to store/retrieve records. It works nicely for the most part but I'm having some difficulty getting passed the 25 data entries. I'm telling the script to look through and print out the newest 25 entries, which it does. But that's it. After you hit 25 no other data is...
  15. sulfericacid

    Ignore my last board..but here's the question

    I found a possible loop-around solution to my last board's problem. Instead of using DB_File I'm using DB_BTREE so it can keep track of the database order (problem I had earlier was I was tying %chat to two objects therefor untying it to the database making it impossible to save data). NO...
  16. sulfericacid

    DBM_File, database not storing data

    For some reason I can't get my database to store information anymore. Mind I was originally using SDBM which worked for the most part, ever since I switched over I can't get it to save anything. I asked this question to someone and their answer was &quot;After you tie %chat to DB_File you...
  17. sulfericacid

    Perfect positioning

    Is it possible to align something on a page so it matches up no matter what size screen you have? Can you take a look at [http://www.geocities.com/ragingviolet/ragingv.html] ? If you set your window size to 1074x768 you'll see how I want to line things up. But as you can see, this only works...
  18. sulfericacid

    Database problems again

    This is the newest version of the script, there's nothing different between this code and what I'm using on the site right now.. #!/usr/bin/perl -w open( STDERR, &quot;>>/home/sulfericacid/public_html/error.log&quot; ) or die &quot;Cannot open error log, weird...an error opening an error...
  19. sulfericacid

    Database problems again

    I added the || as delimiter but it refuses to work at all. I'll put the colons back and refresh the DB. &quot;Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
  20. sulfericacid

    Database problems again

    Yes, I am looking at it now and you probably already noticed the thing crashed because of the emoticons. I will try using a different deliminator, I'll probably use the pipe but I don't see how that would make much of a difference. I was thinking it was my DB itself but I'm well under the...

Part and Inventory Search

Back
Top