User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 397,820 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,523 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 500
Search took 0.04 seconds.
Posts Made By: KevinADC
Forum: Perl 1 Day Ago
Replies: 4
Views: 111
Posted By KevinADC
Re: Convert decimal to notated hex

sub dec2mac {
return sprintf("%s:%s:%s:%s",unpack("A2A2A2A2",sprintf("%08X", $_[0])));
}
Forum: Perl 1 Day Ago
Replies: 2
Views: 78
Posted By KevinADC
Re: Perl threads

Sorry, I have no experience using threads. If you get no further replies here ask on www.perlmonks.com
Forum: Perl 2 Days Ago
Replies: 4
Views: 111
Posted By KevinADC
Re: Convert decimal to notated hex

"pack" and "unpack" have lots of templates used for this type of conversion of one thing into another thing. I don't know if they can do what you want, but that is a starting place anyway.
Forum: Perl 3 Days Ago
Replies: 7
Views: 340
Posted By KevinADC
Re: PERL or PHP

Fran123,

Now you're just being obnoxious. I assume you will now be banned and I won't miss you. Too bad you couldn't just come here to try and help people instead of putting in a plug for your...
Forum: Perl 3 Days Ago
Replies: 7
Views: 340
Posted By KevinADC
Re: PERL or PHP

There are those people, but they are on all perl forums, not just this one. I post on about 10 perl forums, but only three or four are very active, the rest are like this one, an occasional question....
Forum: Perl 3 Days Ago
Replies: 7
Views: 340
Posted By KevinADC
Re: PERL or PHP

Some people on this forum are like that, but I am not a student nor am I from a second-world country, although it is debateable since the USA is going down the tubes pretty fast.
Forum: Perl 7 Days Ago
Replies: 3
Views: 198
Posted By KevinADC
Re: Boolean search in perl

Open an editor and start writing code and testing the results is how you start. School work?
Forum: Perl 10 Days Ago
Replies: 13
Views: 433
Posted By KevinADC
Re: What regular expression should be written?

Personally I think the OP has been given more than enough information to figure this out, all they have to do is try some of the suggestions and mess around a bit with some code to fine tune it to...
Forum: Perl 11 Days Ago
Replies: 13
Views: 433
Posted By KevinADC
Re: What regular expression should be written?

if ($word =~ /RNA\s+?-?\s+?binding\s+proteins?/i) {
do somethihng
}
Forum: Perl 12 Days Ago
Replies: 13
Views: 433
Posted By KevinADC
Re: What regular expression should be written?

if ($word =~ /RNA[ -]?binding protein/) {
do somethihng
}
Forum: Perl 13 Days Ago
Replies: 13
Views: 433
Posted By KevinADC
Re: What regular expression should be written?

if (/RNA[ -]?binding protein/) {
do somethihng
}

? is a quantifier which means zero or one, its the same as:

if (/RNA[ -]{0,1}binding protein/) {
do somethihng
}
Forum: Perl 15 Days Ago
Replies: 3
Views: 296
Posted By KevinADC
Re: Regex matches all but specific word?

I have no idea if using perl will ultimately prove to be faster or not. You will just have to try it and see.
Forum: Perl 16 Days Ago
Replies: 3
Views: 296
Posted By KevinADC
Re: Regex matches all but specific word?

I would read the file line by line instead of trying to make a single regexp that tries to do too much.


while(<>){
if (/^([a-zA-Z]{0,2}\d+)/) {
my $id = $1;
# now get the...
Forum: Perl 17 Days Ago
Replies: 3
Views: 243
Posted By KevinADC
Re: matching two files

How big are they?
Forum: Perl 18 Days Ago
Replies: 4
Views: 241
Posted By KevinADC
Re: Need tutorials

http://www.perlmonks.com/index.pl?node=Tutorials
Forum: Perl 22 Days Ago
Replies: 1
Views: 235
Posted By KevinADC
Re: No Email::Valid on Mac?

You install the module or use the lib pragma to run the module from @INC without actually installing it.

I don't know how you install modules on a MAC, maybe you use the CPAN shell. You can read the...
Forum: Perl 24 Days Ago
Replies: 2
Views: 3,542
Posted By KevinADC
Re: Problem passing variables to thread

I think you posted in the wrong thread.
Forum: Perl 25 Days Ago
Replies: 1
Views: 257
Posted By KevinADC
Re: Subroutine Access

Well, if you mean the action attribute of the form tag, thats not the way to go about it. One way is to include a hidden form field with the name of the subroutine you want to run:

<input...
Forum: Perl 26 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

Why scripts work on one server and not another is difficult to impossible know why unless you know everything about what software is installed, what operating system the server uses, and etc.

But...
Forum: Perl 26 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

Try removing the -nph option and see if that clears up the problem. If you don't know what the -nph option does, chances are you don't need to use it.
Forum: Perl 27 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

Are you sure you want or need to use the -nph option?
Forum: Perl 27 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

try this:

#!/usr/bin/perl
print "Content-type: text/html\n\nHello World";

see if that simple script will work.
Forum: Perl 27 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

Well, you have this line in the code you posted:

my $dbh = DBI->connect("dbi:mysql:db_hhh:localhost", "hhh", "123456",{RaiseError=>1, AutoCommit=>1, ShowErrorStatement=>1}) or print "failed to...
Forum: Perl 27 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

make sure to upload the perl script in ASCII text mode (see you ftp applications help files if necessary) and that the permissions are set if necessary, normally a perl script is chmod 755, you can...
Forum: Perl 28 Days Ago
Replies: 14
Views: 549
Posted By KevinADC
Re: What's wrong with this perl error

add this line anywhere in the script and see if it returns more specifc information about the error:

use CGI::Carp qw/fatalsToBrowser/;
Forum: Perl 29 Days Ago
Replies: 14
Views: 551
Posted By KevinADC
Re: Proper Setup?

Yes you can. It does not matter if the page is static or dynamic.


if (some condition) {
do_this()
}


You can also make a hash table where the values of the hash keys are references to...
Forum: Perl 31 Days Ago
Replies: 14
Views: 551
Posted By KevinADC
Re: Proper Setup?

Ask for references, read comments from previous customers, have their work reviewed by a third party. It would still be possible to be fooled but many of the hire-a-programmer sites do a good job of...
Forum: Perl 31 Days Ago
Replies: 7
Views: 785
Posted By KevinADC
Forum: Perl 31 Days Ago
Replies: 14
Views: 551
Posted By KevinADC
Re: Proper Setup?

You should use one script to handle the entire process. But, writing CGI scripts is not a good idea for a person that seems to not have any experience and probably does not understand even the basics...
Forum: Perl 31 Days Ago
Replies: 7
Views: 785
Posted By KevinADC
Re: Script to Remove duplicate lines from a text file.

All he has to do is look in the Snippets section of this website, go to the perl section and read the "Script to Remove duplicate lines" snippet.

42.... been a long time since I read the book. ;)
Forum: Perl 32 Days Ago
Replies: 7
Views: 785
Posted By KevinADC
Forum: Perl Jul 22nd, 2008
Replies: 3
Views: 379
Posted By KevinADC
Re: Can't seem to find the problem...

I nominate you for forum cross-poster of the month award. Thats three perl forums so far I have seen this same question posted on.
Forum: Legacy and Other Languages Jul 20th, 2008
Replies: 4
Views: 526
Posted By KevinADC
Re: Perl to Python

I'm pretty sure its matlab, of which I know nothing. So I suggest you find a matlab forum or mailing list.
Forum: Legacy and Other Languages Jul 20th, 2008
Replies: 4
Views: 526
Posted By KevinADC
Re: Perl to Python

the code you posted is not perl, I am not sure after reading your post if you know that or not.
Forum: Perl Jul 16th, 2008
Replies: 5
Views: 570
Posted By KevinADC
Re: problem

Actually it is very simple, you can use the Tie::File module to read/write to the same file or perls inplace editor, which would be my choice since it is way more effcient than Tie::File, but...
Forum: Perl Jul 11th, 2008
Replies: 10
Views: 872
Posted By KevinADC
Re: Crypt::Blowfish / Crypt::CBC

I'm sorry but I can not help with issues of running or installing strawberryperl. I have installed it on a couple of of Windows PCs (XP and 2000) and it ran fine for me.

Maybe one of the resources...
Forum: Perl Jul 10th, 2008
Replies: 3
Views: 612
Posted By KevinADC
Re: Form processing problem

replace these lines:

#create page
print <<endHtml;

replace with:

#create page
print header;
print <<endHtml;
Forum: Perl Jul 9th, 2008
Replies: 5
Views: 570
Posted By KevinADC
Re: problem

did you give up on the other perl forum?

http://bytes.com/forum/thread819194.html
Forum: Perl Jul 9th, 2008
Replies: 10
Views: 872
Posted By KevinADC
Re: Crypt::Blowfish / Crypt::CBC

This is a more drastic option, you can try www.strawberryperl.com which is a windows port of perl that uses the standard CPAN interface.
Forum: Perl Jul 9th, 2008
Replies: 10
Views: 872
Posted By KevinADC
Re: Crypt::Blowfish / Crypt::CBC

You can add repositories but there are a lot of modules that have never been ported to PPM. You can download modules and put them in a folder of your choice and use the lib pragma to include the...
Showing results 1 to 40 of 500

 
All times are GMT -4. The time now is 6:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC