#!/usr/bin/perl
use strict;
use warnings;
my $dir = $ARGV[0];
die "This ($dir) is not a directory" if (-d $dir);
Result
$ perl tmp.pl Music/
This (Music/) is not a directory at tmp.pl line 7.
[ORACLE] [SQLSERVER] [POSTGRES] [MYSQL] [DBA] [UNIX] [LINUX] [WINDOWS] [FREEBSD] [REDHAT] [SQL] [PERL] [SH] [BAT] [SCRIPT]
0 comentários:
Post a Comment