First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
FAQ 5.37 Why doesn't glob("*.*") get all the files?
This is an excerpt from the latest version perlfaq5.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 . --------... 14 Jun 2010 00:50
Matching block of nested brace pairs
Suppose I have some C++ code like the following, I want to match the whole namespace x block. namespace x { namespace y { .... } } The following webpage shows brace-matching for perl regex. But I don't find the matchpairs module. (I'm using perl 5.10.1). Would you please let me know if there i... 14 Jun 2010 01:55
FAQ 4.7 How do I multiply matrices?
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 . --------... 13 Jun 2010 18:17
FAQ 7.25 Why can't a method included in this same file be found?
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 . --------... 13 Jun 2010 12:40
How to convert a literal string to regex
Suppose I have $string='().', If I want grep such string, I should use regex /\(\)\./. Is there a subroutine to convert '().' to '\(\)\.'? ... 13 Jun 2010 12:40
Where is -e (file test operator) in man?
-e is discussed in operator section in Programming Perl. But I don't find it in man perlop. Would you please let me know where it is document in man or perldoc? ... 13 Jun 2010 13:48
How to grep using an array of patterns?
If I only have a small number of patterns(say 3), I can just spell out the matching code as below. grep {/$pattern1$/ or /$pattern2$/ or /$pattern3$/} @array; But if I have @patterns with many patterns that I want grep, the above way doesn't work. I'm wondering what is the best way to grep many patterns. ... 15 Jun 2010 17:37
Negative Lookbehind and Wildcards
I try to match .cpp files that doesn't start with 'main'. But the grep command below match all the .cpp files. I know that \w* tries to match as long as possible. Do you know how to fix the regex to get all the .cpp files that doesn't start with 'main'? #!/usr/bin/env perl use strict; use warnings; my @arr... 13 Jun 2010 20:29
FAQ 8.50 What is socket.ph and where do I get it?
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 . --------... 13 Jun 2010 06:08
FAQ 4.70 How can I use a reference as a hash key?
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 . --------... 13 Jun 2010 00:45
First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47