Search Results

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: KevinADC ; Forum: Perl and child forums
Forum: Perl May 30th, 2009
Replies: 2
Views: 486
Posted By KevinADC
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: 661
Posted By KevinADC
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: 826
Posted By KevinADC
$decVal = <STDIN>;
chomp($decVal);#<--- you need this
Forum: Perl Apr 4th, 2009
Replies: 7
Views: 779
Posted By KevinADC
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,201
Posted By KevinADC
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: 784
Posted By KevinADC
Use a regular expression and a counter.
Forum: Perl Feb 10th, 2009
Replies: 2
Views: 722
Posted By KevinADC
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: 627
Posted By KevinADC
Seems that maybe headedtomexico is now madeittomexico
Forum: Perl Jan 26th, 2009
Replies: 4
Views: 612
Posted By KevinADC
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,202
Posted By KevinADC
see devshed for a reply to your question
Forum: Perl Sep 16th, 2008
Replies: 2
Views: 1,402
Posted By KevinADC
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: Perl Jul 3rd, 2008
Replies: 5
Views: 1,553
Posted By KevinADC
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,303
Posted By KevinADC
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,133
Posted By KevinADC
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,712
Posted By KevinADC
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,531
Posted By KevinADC
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,776
Posted By KevinADC
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: 907
Posted By KevinADC
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: Perl Jun 18th, 2007
Replies: 2
Views: 1,551
Posted By KevinADC
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,715
Posted By KevinADC
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: Perl Feb 24th, 2007
Replies: 7
Views: 10,997
Posted By KevinADC
#!/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
Solved: about perl ?
Views: 2,042
Posted By KevinADC
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: 3,000
Posted By KevinADC
Forum: Perl Sep 30th, 2006
Replies: 3
Views: 5,532
Posted By KevinADC
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,031
Posted By KevinADC
$datos .= qq~<a href="$me?C=OFERTAS2&EMPRESA=$empresa_param&NREF=$nref" onMouseOver="linkFTecnica(nref2)">~;
Showing results 1 to 25 of 25

 


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

©2003 - 2009 DaniWeb® LLC