in reply to Re^3: working with relative paths
in thread working with relative paths
First, the code I just used:
#!/usr/bin/perl -w use strict; my ($direct); chomp($direct = $ARGV[0]); shift @ARGV; chdir($direct) || die "failed to change to directory: $!"; opendir(WORKDIR,$direct) || die "failed to open directory: $!"; closedir(WORKDIR) || die "failed to close directory: $!";
Next, the output:
username@computer:~$ perl testchdir.pl music failed to open directory: No such file or directory at testchdir.pl li +ne 9. username@computer:~$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: working with relative paths
by fglock (Vicar) on Oct 30, 2004 at 03:27 UTC | |
by apotheon (Deacon) on Oct 30, 2004 at 03:55 UTC |