FAQ 6.9 How can I quote a variable to use in a regex? 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 . --------... 1 Apr 2010 16:52
FAQ 9.14 How do I make sure users can't enter values into a form that cause my CGI script to do bad things? This is an excerpt from the latest version perlfaq9.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 . --------... 27 Mar 2010 18:49
command-line arg, negative hex? A test I'm running generates 'implicit' hex values. So, "123", not "0x123". For negative values, it just uses (eg) "-123". I would like to sum a set of these on the command line; eg: ' sum.pl 12 34 -10 ' For non-negative values, 'hex()' does what I want. But, it ignores the '-xx' values. Is there a way to r... 29 Mar 2010 16:57
FAQ 7.10 How do I adopt or take over a module already on CPAN? 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 . --------... 27 Mar 2010 13:06
FAQ 9.15 How do I parse a mail header? This is an excerpt from the latest version perlfaq9.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 . --------... 27 Mar 2010 09:33
FAQ 4.63 Why don't my tied hashes make the defined/exists distinction? 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 . --------... 27 Mar 2010 01:09
equivalent Gang, I'm looking for an equivalent in perl to the php syntax: $data = file_get_contents('php://input'); I've read some posts about IO::File::String and LWP::Simple possibly being used instead of 'file_get_contents'. The php line accepts raw input and assigns it to a variable. This input is coming fro... 5 Apr 2010 08:16
FAQ 6.15 How can I print out a word-frequency or line-frequency summary? 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 . --------... 26 Mar 2010 13:09
FAQ 5.11 How can I write() into a string? 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 . --------... 26 Mar 2010 06:52
File formatting Hi, I have a file with two fields, country and city and "|" delimiter. Here are the sample formats: USA | Boston USA | Chicago USA | Seattle Ireland | Dublin Britain | London Britain | Liverpool I would like to have the output like the following: USA | Boston,... 30 Mar 2010 20:40 |