First  |  Prev |  Next  |  Last
Pages: 90 91 92 93 94 95 96 97 98 99 100 101 102 103
"un-meta" the control characters
A coworker just presented me with this task. I came up with two solutions, but I don't like either of them. He has a text document and wants to scan it for characters such as newline, tab, form feed, carriage return, vertical tab. If found, he wants to replace them with their typical representation (ie, \n, \t, ... 3 Nov 2009 23:48
unintialised warning
Hi The following can cause a warning if undefined my $value=$PAR{$name}; What the best solution? my $value=$PAR{$name }or $value=''; or my $value=''; if (defined $PAR{$name}) {$value=$PAR{$name}} or is there a cleaner solution? Regards John ... 4 Nov 2009 10:48
FAQ 6.6 How do I substitute case insensitively on the LHS while preserving case on the RHS?
This is an excerpt from the latest version perlfaq6.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 31 Oct 2009 06:45
Net::SFTP Fails, sftp OK
This just fails unexpectedly. With sftp I can connect no problem: perl -MNet::SFTP -le'$ftp = Net::SFTP->new("sftp.xj999.com", user => "X", password => "Z", debug => 1); print $_->{filename} for $ftp->ls;' localhost: Reading configuration data /mounts/sysadm/xj/.ssh/config localhost: Reading configuration data /... 29 Oct 2009 07:38
Perl IDE ScriptDev V2.3 released
ScriptDev is developed by a powerful scripting language integrated development environment(IDE), can be used for Python, Ruby, Lua, Tcl, Perl, etc. scripting language, such as the development and debugging. ScriptDev similar to the components of the Eclipse framework to support the expansion of rich, Users can also... 28 Oct 2009 11:45
Perl bioinformatics
I'm not changing jobs, but I've been contacted about some contract opportunities that (reportedly) are difficult but seem easy enough to me, manipulating genome files to produce various kinds of reports, graphs, etc. I have zero experience in this, so I'm just wondering ... 1. What are the career opportunities in... 28 Oct 2009 05:10
Syntax with Set-Cookie
This script worked through earlier versions of both IE and FF, but the newer versions aren't writing the cookie if $remember=1. If $remember=0 then the cookie is set correctly, so I'm pretty sure that the error is with the $expires variable. I'm guessing that there's a typo that the older versions didn't recognize.... 20 Oct 2009 01:16
permutations of symbols?
Does anyone have some simple code to give all the permutations of an array of symbols? i.e. for two symbols in an array: my @array = ('howard', 'geek'); my @permutations = &permute(@array); print join(' ', $permutations[0]), "\n"; print join(' ', $permutations[1]), "\n"; howard geek geek howard It lo... 13 Oct 2009 23:26
Simple question about CGI response after form data has been processed.
I have searched through my books, the FAQs I could find, the CGI documentation, and have not found the answer, probably just an oversight in the documentation I have examined. For the most part, I have found it extremely easy to use the CGI packages. My frustration is that, while it is trivially easy to get fo... 9 Oct 2009 18:13
CGI and UTF-8
I have the task of describing for authors how to prepare forms by CGI scripts in perl, in particular, how to modify existing scripts to conform to a new CMS. Meanwhile the CGI-generated pages are all in code UTF-8. If I have understood everything correctly, the cooperation of the standard CGI module and the Encod... 6 Oct 2009 11:25
First  |  Prev |  Next  |  Last
Pages: 90 91 92 93 94 95 96 97 98 99 100 101 102 103