FAQ 6.5 I put a regular expression into $/ but it didn't work. What's wrong? 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 . --------... 6 Jun 2010 18:15
[Tk] Get hexa code color from name Dear, In a widget Tk, How can I can hexa code color from a color name ? For example: which method can give the hexa code of red name print $widget->METHOD('red'); # #FF0000 Best Regards, Djibril ... 6 Jun 2010 14:55
FAQ 8.19 Why doesn't my sockets program work under System V (Solaris)? What does the error message "Protocol not supported" mean? This is an excerpt from the latest version perlfaq8.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 . --------... 6 Jun 2010 12:42
FAQ 8.14 How do I modify the shadow password file on a Unix system? This is an excerpt from the latest version perlfaq8.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 . --------... 6 Jun 2010 06:10
using bash process substitution in perl pipe? I want to use bash instead of sh because I need the process substitution. But by default perl use sh instead of bash. Is there a way to let perl use bash? #!/usr/bin/perl use warnings; use strict; open(IN, 'ls <(echo main.txt) |'); foreach (<IN>) { print } ... 5 Jun 2010 21:17
How to get the composite type information? ref is not capable to getting composite type information. In the following example, I actually want to print that the type is array of array (I would be better if it can print the first a few element in an array). Is there a function for this in perl? $ cat arrary_of_array.pl #!/usr/bin/env perl use strict; ... 5 Jun 2010 16:54
FAQ 7.24 How can I catch accesses to undefined variables, functions, or methods? This is an excerpt from the latest version perlfaq7.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 . --------... 5 Jun 2010 07:03
Where is the document for \ (backslash operator for creatinga reference) Peng Yu wrote: I think that the document for \ can be found in man perlop. But there are too many '\'s, and I don't find where the description of backslash operator is. Would you please point me which section to look at? Or '\' is discussed in some other man page? It is both the 1st and the 6th backslash... 5 Jun 2010 02:47
FAQ 4.38 Why don't my <<HERE documents work? This is an excerpt from the latest version perlfaq4.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 . --------... 5 Jun 2010 00:37
How does grep {$field->$_} work? Hi, In the bioperl Eutilities cookbook, http://www.bioperl.org/wiki/HOWTO:EUtilities_Cookbook I see the following code, print join(',', grep {$field->$_} qw(is_date is_singletoken is_hierarchy is_hidden is_numerical)),"\n \n"; I'm not understand how $field->$_ work with. I'm trying to br... 4 Jun 2010 23:32 |