460 Posted Topics
Re: You have this question also on DEVSHED where it has a number of replies. | |
Re: I would find a BioPerl forum or mailing list and ask there. | |
Re: You probably want to remove the newlines though. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: change the httpd.conf file from read only (I don't know how to do that on OSX) so you can edit it. | |
Re: Not sure I understand what your question is. Why doesn't it work with the xml file? | |
Re: 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] | |
Re: [url]http://www.amazon.com/Beginning-Programming-Dummies-Wally-Wang/dp/0764508350[/url] | |
Re: 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? | |
Re: 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] … | |
Re: 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 … | |
Re: what have you tried so far? | |
Re: \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: '$.' | |
Re: why are you spamming so many forums with your pointless questions? | |
Re: 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 … | |
Re: 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. … | |
| |
Re: 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. | |
Re: 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 … | |
Re: 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; | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: Hard to say, you have not given enough information. Can you be more specific? | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: That modules documentation appears to support upto PPM 3.x, and I also have no idea how to mass add repositories to PPM. | |
Re: [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 … | |
Re: I don't understand what you are trying to do. Can you explain it better? What does the aliases file look like? | |
Re: 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. | |
Re: [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 … | |
Re: Are we supposed to know what gearman is? | |
Re: see if anything here helps you: [url]http://www.perl.com/pub/a/2004/10/14/file_editing.html[/url] | |
Re: 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. | |
Re: start with LWP or LWP::Simple as for the links, search CPAN for linkextractor and you should find the module. | |
Re: 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 … | |
Re: 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 … | |
Re: [url]http://www.perl.org/books/beginning-perl/[/url] | |
Re: 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 … | |
![]() | |
Re: 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; … |
The End.