O'Reilly logo

Programmieren mit Perl by Jon Orwant, Tom Christiansen, Larry Wall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File::Spec

use File::Spec; # OO-Stil $path = File::Spec->catfile("subdir", "dateiname"); # 'subdir/dateiname' bei Unix, OS2 oder Mac OS X # 'subdir:dateiname' bei (alten) Apple Macs # 'subdir\dateiname' bei Microsoft $path = File::Spec->catfile("", "dirl", "dir2", "dateiname"); # '/dirl/dir2/filename' bei Unix, OS2 oder Mac OS X # ':dirl:dir2:filename' bei (alten) Apple Macs # '\dirl\dir2\filename' bei Microsoft use File::Spec::Unix; $path = File::Spec::Unix->catfile("subdir", "dateiname"); # 'subdir/filename' (selbst bei Ausführung auf Nicht-Unix-Systemen) use File::Spec::Mac; $path = File::Spec::Mac->catfile("subdir", "dateiname"); # 'subdir:dateiname' use File::Spec::Win32; $path = File::Spec::Win32->catfile("subdir", "dateiname";) # 'subdir\dateiname' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required