|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
scalar / list context weirdness
|
This is returning a bunch of 1's instead of a bunch of file names
without their .html extensions. Anyone see why?
@indices = map { $_ =~ s/.html$// } @indices;
This is the fuller snippet:
my @indices = `/bin/ls papers/*html`;
chomp(@indices);
@indices = map { $_ =~ s/.html$// } @indices;
print "@indices\n";
Thanks.
--
Jeff
Jeff Abrahamson <http://www.purple.com/jeff/>
GPG fingerprint: 1A1A BA95 D082 A558 A276 63C6 16BF 8C4C 0D1D AE4B
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|