KroKite has asked for the wisdom of the Perl Monks concerning the following question:
Thanks#!/usr/bin/perl use strict; use warnings; use File::Find; my $dir = shift || './'; find(\&test, $dir); sub test{ my %alphabet = ( php => ["<?php", "?>", "echo", "print", "print_r"], perl => ["#!", "usr", "bin", "perl", "print", "stdin"], cplusplus => ["#include", "iostream", "stdio", "namespace", "strings", + "cout", "cin"]); print $alphabet{php}->[1]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I have Values stored in array within Hashes, Can't really call one @ a time
by aaron_baugher (Curate) on May 11, 2012 at 18:34 UTC | |
|
Re: I have Values stored in array within Hashes, Can't really call one @ a time
by Khen1950fx (Canon) on May 11, 2012 at 22:09 UTC | |
|
Re: I have Values stored in array within Hashes, Can't really call one @ a time
by Anonymous Monk on May 11, 2012 at 13:34 UTC | |
by KroKite (Initiate) on May 11, 2012 at 17:36 UTC | |
by Anonymous Monk on May 11, 2012 at 17:58 UTC |