460 Posted Topics

Member Avatar for LODEY
Member Avatar for KevinADC
0
123
Member Avatar for j.arevathi
Member Avatar for jephthah
0
139
Member Avatar for mank
Member Avatar for mank

Your explnation is not very clear: fileX name1 account1 123 name2 account2 324 name3 account3 345 fileY name1 account1 123 name2 account4 324 name5 account3 345 So I want output file to be like outputfile name1 account1 123 name2 [B]account2[/B] 324 name3 account3 345 name5 account3 345 The duplicate is …

Member Avatar for KevinADC
0
390
Member Avatar for toadzky

path to perl may have changed: #!usr/bin/perl Look in the server error log if you can, most hosts have an error log you can look at.

Member Avatar for KevinADC
0
77
Member Avatar for strus_jan

If you want to define the IO files in the script look into the open() function or using @ARGV to pass in parameters to use as files. Please note, there is no urgent help here. Your question is no more important or less important then anyone elses. It will be …

Member Avatar for strus_jan
0
98
Member Avatar for hhheng

Additionally, this condition will always be true: [code]if($page = "") $page = 1;[/code] because you have used the assingment operator "=" instead of a comparison operator like "==" or "eq" to check the value of $page.

Member Avatar for jephthah
0
127
Member Avatar for a.suryakumar

Help you with what? You should not expect anyone here to debug your code, explain where you are having problems. Please note there is no urgent help here. Your question is no more important or less important then any other question posted on the forum. If you need urgent help …

Member Avatar for jephthah
0
82
Member Avatar for KimJack
Member Avatar for bradleykirby

change the httpd.conf file from read only (I don't know how to do that on OSX) so you can edit it.

Member Avatar for bradleykirby
0
104
Member Avatar for crazylunatic

Not sure I understand what your question is. Why doesn't it work with the xml file?

Member Avatar for jephthah
0
124
Member Avatar for lAmoebal

There are a lot of SNMP modules already written that you should probably take a look at: [url]http://search.cpan.org/search?query=snmp&mode=all[/url]

Member Avatar for lAmoebal
0
172
Member Avatar for roswell1329

[url]http://www.amazon.com/Beginning-Programming-Dummies-Wally-Wang/dp/0764508350[/url]

Member Avatar for trudge
0
78
Member Avatar for katharnakh

hmmm...not sure what the problem is, your code works fine for me. Are you sure the B.pm file you posted is the file your main script is accessing?

Member Avatar for KevinADC
0
4K
Member Avatar for j.arevathi

try changing these lines: [CODE] if ($genome_seq =~ $srna_seq){ my $align = lc$1; $genome_seq =~ s/$1/$align/; print $genome_seq, "\n"; }[/CODE] to: [CODE] if ($genome_seq =~ /($srna_seq)/){ my $align = lc $1; $genome_seq =~ s/$1/$align/; print $genome_seq, "\n"; }[/CODE] or: [CODE] if ($genome_seq =~ s/($srna_seq)/lc $1/e){ print $genome_seq, "\n"; } [/CODE] …

Member Avatar for KevinADC
0
171
Member Avatar for ithelp

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). You can download (or simply read) a few perl books for free from this site: [url]http://www.perl.org/books/library.html[/url] They …

Member Avatar for BobUillean
0
122
Member Avatar for batcater98
Member Avatar for gawain_

\014 looks to be octal for a carraige return or newline. so /\014/ is a regexp looking for that pattern in $_. Probably it's counting lines, not sure why it does it like that though. Perl has a variable that tells you how many lines are in a file: '$.'

Member Avatar for gawain_
0
90
Member Avatar for john_aa
Member Avatar for KevinADC
-1
88
Member Avatar for KimJack

Use the CGI module and it will automatically get multi-valued form fields into your CGI script for you if you call the multi-valued form field in list context, for example: [CODE]use CGI qw/:standard/; print header; my @first = param('first');#<-- your radio buttons: name='first' print "$_<br>\n" for @first;[/CODE] See the CGI …

Member Avatar for KevinADC
0
232
Member Avatar for muppetjones

You are using math, there are several places in the script that use math operators: == <= maybe more. I do not know if that is where you problems are occuring. Erros/Warnings generally have a line number associated with them that can help pin point where a error/warning is occuring. …

Member Avatar for muppetjones
0
105
Member Avatar for yashwanta
Re: Help

[url]http://www.daniweb.com/forums/announcement112-2.html[/url]

Member Avatar for KevinADC
0
94
Member Avatar for SergioQ

should work, but really you should use the CGI module to get post and get (and other) data into your perl based CGI scripts. Trying to do it like you are is not secure, could lead to problems.

Member Avatar for KevinADC
0
129
Member Avatar for wolverine_ramir

You need perl and the Tk modules installed. I would be surprised if they are not included with the distribution of perl you are using. Open the activestate folder and open the documentation folder (or however it is structured with Active perl 5.10). You should see a list of all …

Member Avatar for wolverine_ramir
0
202
Member Avatar for smyhmsg
Member Avatar for gopalsd

is this school work? If you are entering integers sort() will not work properly. That is a lexical sort in ASCII order, not numeric order. To properly sort numbers use: <=> @sorted = sort {$a <=> $b} @unsorted;

Member Avatar for KevinADC
0
71
Member Avatar for ywchong

If you are using Windows you will want to look into the Win32 class of modules and see if there is one written to communicate with the com port, I suspect there is. Or you can possibly open a pipe to the com port. Where are you stuck? Do you …

Member Avatar for ywchong
0
66
Member Avatar for rolinski

The code can be written more efficiently. I do not have the time right now to look at it in detail but I will check back later today.

Member Avatar for KevinADC
0
156
Member Avatar for kahaj

Your FTP program, or a control panel that the host lets you use are the two most common ways. You can also shell into the account with telnet and set permissions but the host has to allow telnet connections. Using your ftp program is very easy. See it's help files …

Member Avatar for KevinADC
0
152
Member Avatar for prgmkevin

extracting data from a pdf file could be difficult. I have seen many questions posted on forums over the years dealing with pdf files and it seems the perl modules there are for reading pdf files may leave something to be desired. The rest should be relatively easy but probably …

Member Avatar for KevinADC
0
122
Member Avatar for vossch

Hard to say, you have not given enough information. Can you be more specific?

Member Avatar for KevinADC
0
72
Member Avatar for SergioQ

Image::Magick is sort of a beast all it's own seperate from general perl issues. I recommend you post your concerns on the Image Magick forum: [url]http://www.imagemagick.org/discourse-server/[/url] Hopefully someone there will be able to help you out. Or wait and see if you get some replies here. I never use it …

Member Avatar for SergioQ
0
74
Member Avatar for j.arevathi

Personally, I can not understand the specifications of what the program is supposed to do. Posting partial code is not much help, there is no place in the code posted that even prints anything so there is no way to tell why it's not working properly. And you say you …

Member Avatar for KevinADC
0
112
Member Avatar for j.arevathi

He has this posted on another forum where it has a number of replies and so far nothing has worked, his input file appears to not be tab delimited. He was told to use \s+ instead of \t , which did not work either.

Member Avatar for j.arevathi
0
115
Member Avatar for prashant.jnu
Member Avatar for adaykin

That modules documentation appears to support upto PPM 3.x, and I also have no idea how to mass add repositories to PPM.

Member Avatar for KevinADC
0
219
Member Avatar for chrisbliss18

[QUOTE]Another piece of important information is that while both the program that failed and then worked and this current program are programs to upload files, they are completely different versions of code that work differently. They don't even share any custom libraries in common.[/QUOTE] Almost sounds like someone is hitting …

Member Avatar for chrisbliss18
0
273
Member Avatar for magikman

I don't understand what you are trying to do. Can you explain it better? What does the aliases file look like?

Member Avatar for KevinADC
0
201
Member Avatar for Denny1999

Install the module using PPM. Read the activestate documentation in the activestate folder on your hard drive for instructions on PPM for your particular version of activestate perl.

Member Avatar for Denny1999
0
96
Member Avatar for BrianNY

[QUOTE]I have installed apache, php, mysql, cgi[/QUOTE] By CGI do you mean perl? I use activestate perl and mysql but on an old Windows98 test server. If the mysql drivers do not work for XPpro I am not sure what you can do. You could try installing strawberry-perl instead of …

Member Avatar for BrianNY
0
275
Member Avatar for the_nookie
Member Avatar for roryne

see if anything here helps you: [url]http://www.perl.com/pub/a/2004/10/14/file_editing.html[/url]

Member Avatar for KevinADC
0
104
Member Avatar for jmckinzie

Few sites just have a login page, they generally use sessions/cookies to track you while on the site. Otherwise you can simply bypass the login screen and go directly to the content pages.

Member Avatar for roryne
0
189
Member Avatar for SergioQ

start with LWP or LWP::Simple as for the links, search CPAN for linkextractor and you should find the module.

Member Avatar for SergioQ
0
75
Member Avatar for edborelly

The -A file test operator is good for what you are trying to do. It will list the files last accessed date in days since the program started (your perl program). So something like: [CODE]my @files = grep {(-f) && (-A) > 10} </home/any/logs/*>; print "$_\n" for @files; [/CODE] The …

Member Avatar for edborelly
0
147
Member Avatar for xcoaster1

emails can be viewed as plain text or as html encoded, and even if html encoded the end user can elect to see emails as plain text. You should decide which route to take, text or html encoded, and then work on a solution. A side-note to this is that …

Member Avatar for KevinADC
0
142
Member Avatar for pilchas
Member Avatar for trudge
0
101
Member Avatar for magikman

There are a lot of logfile parsers alreay written on [URL="http://search.cpan.org/"]CPAN[/URL]. I suggest you search there and see if there is one for the particular log file you are working with. If not, you need to tackle your parsing issues one problem at a time. The code you posted will …

Member Avatar for magikman
0
227
Member Avatar for geethab
Member Avatar for msaenz

Is this school/class/course work? Be more specific about what you are having trouble with instead of just posting your code and saying "its not working" or "I am having trouble". This whole block of code is just totally wrong for various reasons: [CODE]foreach $string (@array){ $blah=shift($string); $blah=split(/\W+/); $count+=blah; print $count; …

Member Avatar for trudge
0
116

The End.