in reply to help needed in opendir
Hmmm sounds like homework?
I would suggest you read up on opendir and take a look at utf8 on cpan.
-edit- But for the sake of fun; you could experiment with *not tested*
#! /usr/bin/perl use strict; use warnings; use bytes; opendir DIR, "/path/to/dir" or die "opendir: $!"; my @files = readdir DIR; open HANDLE, ">filelist" or die "open filelist: $!"; foreach (@files) { print HANDLE "$_\n"; }
Get it working and then use the use utf8; and compare the results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help needed in opendir
by uva (Sexton) on Mar 13, 2006 at 07:18 UTC | |
by Anonymous Monk on Mar 13, 2006 at 11:06 UTC | |
by uva (Sexton) on Mar 13, 2006 at 11:35 UTC |