Welcome To Snipplr

Everyone's Recent Perl Snippets Tagged array

« Prev 1 Next »
  1. FAV

    Process PHP-style array (square brackets) from HTML form in Perl CGI

    This is inspired by this http://www.cgi101.com/book/ch5/text.html so I'm using a similar example. In PHP you can combine a set of checkboxes into an array using square brackets like this: <form> <input> Red<br> <input> Green<br>...
    Perl saved by 4 people 0 views posted 10 years ago by ptepper
  2. FAV

    Add array elements to hash set

    Perl hash sets are hashes used to represent sets. Their keys are the set elements, and the corresponding values are just 1. For keys that are not set elements, the hash will return undef, equivalent to false. Adding a whole array to a hash set i...
    Perl 1 views posted 10 years ago by deepsoul
« Prev 1 Next »