develooper Front page | perl.beginners | Postings from January 2002

newbie question

From:
Pam Derks
Date:
January 3, 2002 15:19
Subject:
newbie question
Message ID:
sc347622.059@169.229.19.25
I've been trying to understand program 6.21 in the Perl Cookbook, which changes URLs to html links
 here's a snippet:

 #!/usr/bin/perl

 $urls = '{http|telnet|gopher|file|wais|ftp');
 $ltrs = '\w';
 $gunk = '/#~:.?+=&%!\-';
 $punc = '.:?@\-';
 $any = "${ltrs}${gunk}${punc}";

 I understand what $any is, but
 what exactly is ${ltrs}  or ${gunk}  ??
 is this an anonymous hash

 thanks for any help,
 Pam 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About