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
23 Methods for manipulating file specifications.
31 Returns $ENV{TMPDIR} or if that is unset, "/t".
37 return $tmpdir if defined $tmpdir;
38 $tmpdir = $_[0]->_tmpdir( $ENV{TMPDIR}, "/t" );
41 =item file_name_is_absolute
43 Returns true if there's a colon in the file name,
44 or if it begins with a slash.
48 sub file_name_is_absolute {
49 my ($self, $file) = @_;
51 # Not 100% robust as a "/" must not preceded a ":"
52 # but this cannot happen in a well formed path.
53 return $file =~ m{^/|:}s;
58 All the other methods are from L<File::Spec::Unix>.