Hi Friends, I want to do Multicasting in Perl,when iam executing the following code the following error is coming. "setsockopt: Protocol not available" ...
Hi there, I was wondering :- 1) Ive got a CGI database & stuff.. im thinking of creating a 'slideshow' of pictures of various items Eg - (when finished, will...
http://www.census.gov/geo/www/gazetteer/places2k.html Does the above 4 files show the City / state ? I''ll assume the 1st two characters of the 'places'...
Hi After playing with this I rewrote it as follows, it works but takes a long time. Just wondering if there is another way to write something like this but...
... takes ... The 'algorithm' I used was: 1) Read guestbookphp.csv file (one with email addresses) into a hash. 2) Read in news.csv, parse out email address...
After an hour reading though programming perl... I realised I had left the & of the start of the variable name.. I also had to add no strict 'refs'; to get it...
Hi guys.. I have passed a subroutine containing sql statement to a session variable.. and I need to run that sub stored in the var name.. for example: sub...
I have a really bizarro mail server here at my work that has a ton of really strange config files. Without getting into too much details about it's setup. I...
Hehe... try this... cat | awk '{print $1}' I know it's not perl, but it wouldn't be that easy in perl :-) Seriously, in perl, I'd probably do it like this... ...
Nathan.Jeffrey@...
Apr 2, 2003 1:05 am
14281
I'm trying to link to Central Commands website to dynamically generate links for each daily briefing whether the briefing is held by CENTCOM or the DoD. They...
I'm stuck here because I can't let my Perl program read in a huge file (5,000,000 lines). If I use my normal way of reading, my computer just crashes. The...
don't assign it to an array.. big waste of memory.. open (FH1,"< $file"); while (<FH1>){ # Do stuff to each line working on $_ } see if that helps.. rgds ...
Hi did any body encounter such an error with Oracle 9i portal. Error: Your account is globally locked. Please try logging in after the global lockout duration...
Hi Hope this isn't too silly a question but I am very new to Perl and am trying to check if the users input is a number. Basically, here's what I've got so...
Jaco
jaco2001uk@...
Apr 2, 2003 10:39 pm
14287
... you the // surrounding the [0-9] to make it a regex. so change it to $times_tables =~ /\d/ the \d matches any one digit (0-9) and so is basically the...
Not quite -- /[0-9]/ will also match "a3a'; as in this code -- $a = <>; if ( $a =~ /[0-9]/ ) { print "OK"; } else { print "no"; } output -- perl test.pl a3a OK...
Here is a section from the perl cookbook. ... Checking Whether a String Is a Valid Number Problem You want to check whether a string represents a valid number....
Thanks everyone for your help :) I've read a few basic things on regexps but need to find loads of examples really to read through and try and understand To...
Jaco
jaco2001uk@...
Apr 2, 2003 11:41 pm
14291
You need something like this untested code -- $flag = "keep-going"; while ( $flag eq "keep-going") { print "Enter the table you want to work with <1-25> "; ...
You are right! I forgot all about the is... functions. ... From: Charles K. Clarkson [mailto:cclarkson@...] Sent: Wednesday, April 02, 2003 15:52 To:...
... What you need is a loop that will continue to query the user after incorrect input. This loop runs forever. It is dangerous but can be escaped on most...
I have a date from the form in format: 2003-04-03, (yyyy-mm-dd). $date = $field{'date'} ; but once after input I want to format it through script as: Apr-04-03...
Sure it's possible. split() on a hyphen into an array, substr() the first element to take the last two digits of the year, convert the month to a name via a...
Nathan.Jeffrey@...
Apr 3, 2003 11:44 pm
14297
I am trying to get up and running on perl cgi scripts. I have tried to execute a test program and get a 500 error. In the error log it says: [Thu Apr 03...
Bernard, I'm no expert, but in the absence of a more knowledgeable response, I can help try and find the answer. From what I've found on the web there are a ...
Hi Don, My machine is xp pro. I hope it's not the Perl code, as I am attempting to access an included cgi file, tryit.cgi (I was trying cgivariable as well, ...
Bernard, Sorry, but I won't be much help to you. If its not the code itself (a safe bet for the sound of it) then its either the server or the OS or the way ...