1 package File::Spec::AmigaOS;
4 use vars qw(@ISA $VERSION);
5 require File::Spec::Unix;
10 @ISA = qw(File::Spec::Unix);
14 File::Spec::AmigaOS - File::Spec for AmigaOS
18 require File::Spec::AmigaOS; # Done automatically by File::Spec if needed
22 Methods for manipulating file specifications.
30 Returns $ENV{TMPDIR} or if that is unset, "/t".
36 return $tmpdir if defined $tmpdir;
37 $tmpdir = $_[0]->_tmpdir( $ENV{TMPDIR}, "/t" );
40 =item file_name_is_absolute
42 Returns true if there's a colon in the file name,
43 or if it begins with a slash.
47 sub file_name_is_absolute {
48 my ($self, $file) = @_;
50 # Not 100% robust as a "/" must not preceded a ":"
51 # but this cannot happen in a well formed path.
52 return $file =~ m{^/|:}s;
57 All the other methods are from L<File::Spec::Unix>.