Forum: Perl May 30th, 2009 |
| Replies: 2 Views: 462 The perl documentation would have explained all of your errors. But I'll short-cut it for you.
First, $a and $b are variables used by perl for sorting and should not be used by you except for... |
Forum: Perl May 1st, 2009 |
| Replies: 9 Views: 634 If you really want to do it manually you need a recursive function, something like this:
use warnings;
use strict;
#push @INC, "C:/Perl/Modules";
print "What is current download... |
Forum: Perl Apr 19th, 2009 |
| Replies: 2 Views: 795 $decVal = <STDIN>;
chomp($decVal);#<--- you need this |
Forum: Perl Apr 4th, 2009 |
| Replies: 7 Views: 742 You need to print the header first, not second:
print $cgi->start_html(), $cgi->header();
should be:
print $cgi->header(), $cgi->start_html(); |
Forum: Perl Mar 5th, 2009 |
| Replies: 7 Views: 2,132 You can't get the data sent to redirect.pl parsed by showdata.pl the way you are trying.
You have to recieve the data in your redirect.pl script and save it to disk and have showdata.pl open the... |
Forum: Perl Feb 12th, 2009 |
| Replies: 8 Views: 766 Use a regular expression and a counter. |
Forum: Perl Feb 10th, 2009 |
| Replies: 2 Views: 697 if($form_element{'email'} =~ m/^[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+([.][a-zA-Z0-9_\-]+)+[a-zA-Z]{2,4}$/i){
$values = 0;
$mail = "Valid!";
} else {
$mail = "InValid!";
} |
Forum: Perl Feb 4th, 2009 |
| Replies: 7 Views: 610 Seems that maybe headedtomexico is now madeittomexico |
Forum: Perl Jan 26th, 2009 |
| Replies: 4 Views: 589 A students best cheat tool is a search engine or the search feature of a website or forum. You would have found a recent thread discussing the exact same assignment had you done just a little... |
Forum: Perl Dec 4th, 2008 |
| Replies: 11 Views: 1,186 see devshed for a reply to your question |
Forum: Perl Sep 16th, 2008 |
| Replies: 2 Views: 1,376 You could try using a reference to a function.
sub some_function {
print "foo";
}
my $some_function = \&some_function;
You can pass $some_function like any other scalar, but you need to... |
Forum: Legacy and Other Languages Jul 20th, 2008 |
| Replies: 4 Views: 1,497 the code you posted is not perl, I am not sure after reading your post if you know that or not. |
Forum: Perl Jul 3rd, 2008 |
| Replies: 5 Views: 1,530 The warning will have no affect on the program. If you don't want the warning issued you can elect not to use the warnings pragma or use the "no warnings" switch in a block of code. See the warnings... |
Forum: Perl Jun 26th, 2008 |
| Replies: 4 Views: 4,224 basic script with no formatting of output:
use warnings;
use strict;
use File::Find;
use File::Find;
find( {wanted=> \&wanted, no_chdir => 1}, 'C:/Program Files/Player' );
sub... |
Forum: Perl Jun 23rd, 2008 |
| Replies: 12 Views: 2,120 What you want is an IDE, a good free one is Perl Express
http://www.perl-express.com/
I think its only for Windows operating systems. Install activeperl from www.activestate.com then use the... |
Forum: Perl May 15th, 2008 |
| Replies: 14 Views: 2,667 You declared perl is headed to the graveyard, if you ask me, python will probably get there sooner judging by it lower usage and it's been around as long as perl if not longer in one form or version... |
Forum: Perl May 1st, 2008 |
| Replies: 8 Views: 1,512 There is no urgent help here. All questions have the same priority: none.
If you want help you need to post your code, describe in detail the problems you are having and post any error messages... |
Forum: Perl Apr 16th, 2008 |
| Replies: 32 Views: 9,607 Good. But I still think it would be better to just count the words while building the initial data set, it would be less work since perl would only need to parse the file once to get all the data,... |
Forum: Perl Feb 8th, 2008 |
| Replies: 2 Views: 906 Get the latest edition of "Perl BookShelf References" (on CD). 5 or 6 books on the CD, including "Learning Perl" and "Advanced Perl Programming" (at least last ime I checked they were included).
... |
Forum: DaniWeb Community Feedback Jul 10th, 2007 |
| Replies: 12 Views: 1,777 On second thought, forget my post. I have no idea why I even bothered to post in this thread, it just seems like such a non-issue that I am surprised anyone would care. But everyone is different, so... |
Forum: Perl Jun 18th, 2007 |
| Replies: 2 Views: 1,535 it will be in the http server error logs but most likely will not help much. But look in the apache folder, find the logs folder and find the error file. |
Forum: Perl May 19th, 2007 |
| Replies: 5 Views: 1,711 in the code I posted, change this line:
print qq~( $long, $lat, time(), $omschrijving, $longneg, $latneg )~;
to:
$sth->execute( $long, $lat, time(), $omschrijving, $longneg, $latneg ); |
Forum: DaniWeb Community Feedback May 7th, 2007 |
| Replies: 34 Views: 4,327 IMHO, you are looking for the solution to a problem that does not exist. And that really sounds just like the middle-management buzz-word-bull-crap I used to hear in countless meetings back in the... |
Forum: DaniWeb Community Feedback May 7th, 2007 |
| Replies: 34 Views: 4,327 Understood. I realize my post may not be clear, but if you notice I never say anything about you wanting to copy them or to be like them.
But you are also one of the most attentive administrators... |
Forum: DaniWeb Community Feedback May 1st, 2007 |
| Replies: 123 Views: 14,019 First, I think anyone that takes rep seriousy needs to take a break from their computer.
Daniweb seems to have a group of members that is here more for the entertainment value and less the webdev... |
Forum: Perl Feb 24th, 2007 |
| Replies: 7 Views: 10,915 #!/usr/bin/perl
use strict;
use warnings;
open(IN, '<',"dna.dat") or die "Can't read file\n $!";
my $first_line = <IN>;
my $dna = '';
while(my $line=<IN>){
chomp $line;
$dna .= $line;
} |
Forum: Perl Dec 24th, 2006 |
| Replies: 5 Views: 2,040 if you forget that line with perl generated output to a browser you get an internal server error. But the server error log should show an error about incomplete/malformed header. The exact error... |
Forum: Perl Oct 9th, 2006 |
| Replies: 6 Views: 2,993 |
Forum: Perl Sep 30th, 2006 |
| Replies: 3 Views: 5,491 There are a few ways to get the date/time with perl:
http://perldoc.perl.org/functions/gmtime.html
http://perldoc.perl.org/functions/localtime.html
... |
Forum: Perl Sep 12th, 2006 |
| Replies: 3 Views: 4,007 $datos .= qq~<a href="$me?C=OFERTAS2&EMPRESA=$empresa_param&NREF=$nref" onMouseOver="linkFTecnica(nref2)">~; |