Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How do I do < fill-in-the-blank > for each element in a hash?
How do I do < fill-in-the-blank > for each element in a hash?
✍: Guest
Here's a simple technique to process each element in a hash: #!/usr/bin/perl -w %days = ( 'Sun' =>'Sunday', 'Mon' => 'Monday', 'Tue' => 'Tuesday', 'Wed' => 'Wednesday', 'Thu' => 'Thursday', 'Fri' => 'Friday', 'Sat' => 'Saturday' ); foreach $key (sort keys %days) { print "The long name for $key is $days{$key}.\n"; }
2013-09-03, 1693👍, 0💬
Popular Posts:
Does there exist any other function which can be used to convert an integer or a float to a string? ...
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As Sys...
How To Fade Image Edges to Background Colors? - PSP Tutorials - Fading Images to Background Colors w...
What will be printed as the result of the operation below: main() { char *ptr = " Cisco Systems"; *p...
Can you explain Forms authentication in detail ? In old ASP if you where said to create a login page...