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...
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) {...
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...
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...
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...
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...
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...
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...
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 "2") {
$cnt++;
print "Current page count: $cnt<br>";
my...
I'll try that out on my script to see what it does (I just tested it as-is.
"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
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\)/...
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...
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 "120") {
$count++;
my $funky =...
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...
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...
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 "After you tie %chat to DB_File you...
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...
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, ">>/home/sulfericacid/public_html/error.log" )
or die "Cannot open error log, weird...an error opening an error...
I added the || as delimiter but it refuses to work at all. I'll put the colons back and refresh the DB.
"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
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...
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.