Search Results

Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: derekn ; Forum: Perl and child forums
Forum: Perl Nov 10th, 2009
Replies: 2
Views: 709
Posted By derekn
wow! So simple! This worked PERFECTLY! Thanks a million!
Forum: Perl Nov 8th, 2009
Replies: 2
Views: 709
Posted By derekn
I want to search "The tree is in the yard" for the word "the", then replace the word "the" with "<font color=#FFFFFF>the</font>", which I currently do with "s/$searchstring/<font...
Forum: Perl Aug 2nd, 2009
Replies: 1
Views: 517
Posted By derekn
I am trying to accurately calculate percentages with perl. The problem is of course that percentages don't end up as nice, even whole numbers...and I want to truncate those number (92.38495%) to the...
Forum: Perl Jul 21st, 2009
Replies: 1
Views: 709
Posted By derekn
I would like to enable users to view the contents of a zip file via CGI interface. I have tinkered around with Archive::Zip, Archive::Zip::MemberRead, and Archive::Extract, and can't seem to figure...
Forum: Perl Jul 7th, 2009
Replies: 6
Views: 699
Posted By derekn
appreciate the help. I'm using a windows machine...will "ls" work on windows? haven't had a chance to try it yet...but i know ls doesn't work in the command shell
Forum: Perl Jul 7th, 2009
Replies: 6
Views: 699
Posted By derekn
Smart comments are so unecessary. If there were plenty of examples of code already written by searching Google, don't you think I would have used it, instead of posting on here for help? I DID search...
Forum: Perl Jul 7th, 2009
Replies: 6
Views: 699
Posted By derekn
Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then...
Forum: Perl Jul 1st, 2009
Replies: 6
Views: 593
Posted By derekn
Kevin, I appreciate your post, but it turns out that the whole problem was my oversite the whole time. I still don't totally understand WHY it wouldn't match, gotta think through that a bit more, but...
Forum: Perl Jul 1st, 2009
Replies: 6
Views: 593
Posted By derekn
According to PERL documentation, in this instance it is unnecessary to use "//" with the regexp. My understanding is that "=~ $user_input" yields the same as "=~ /$user_input/", which is backed up by...
Forum: Perl Jul 1st, 2009
Replies: 6
Views: 593
Posted By derekn
I'm having a dumb moment here...

I am trying to search out strings and match user input with what's stored in database.

I'm using

if($data =~ $user_input){then do something;}

It's...
Forum: Perl Jun 29th, 2009
Replies: 5
Views: 447
Posted By derekn
OK this is getting stupider by the moment.

I set path like so: $path_to_file="path/file.txt";

If the file exists (need to verify that the file exists before continuing), then read the data...
Forum: Perl Jun 29th, 2009
Replies: 5
Views: 447
Posted By derekn
It's a simple open-file-and-read-contents-into-array script. The file is a TEXT file, there is at LEAST one line of data in the file, and the path to the file is valid. The "problem" is declaring it...
Forum: Perl Jun 29th, 2009
Replies: 5
Views: 447
Posted By derekn
Ok, I am about to pull all my hair out. I have written many many perl scripts and have done it all pretty much. All of a sudden, I have hit a real problem, and I DON'T know why!

I am doing a very...
Forum: Perl May 16th, 2009
Replies: 2
Views: 346
Posted By derekn
Don't know if you really need much more than this.
Here is header line for GD declaring content type:
print header('image/gif');

Here is header line for setting cookie "$cookie":
print...
Forum: Perl May 16th, 2009
Replies: 2
Views: 346
Posted By derekn
I am writing a counter that is created on the fly using GD::Image. I am running into a problem with setting a cookie to ensure that the same user is not counted more than once, as I wish to only...
Showing results 1 to 15 of 15

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC