Thread file::copy (7 answers)
Opened by DocJunioR at 2005-09-20 11:15

pq
 2005-09-20 12:42
#58243 #58243
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
use File::Copy importiert die funktion copy in deinen momentanen
namespace.
wenn du also im skript (package main) File::Copy lädst, kannst du dort die
funktion copy benutzen.
woanders jedoch nicht! nur, indem du File::Copy::copy aufrufst.
das kannst du ganz einfach umgehen, in dem du nicht im skript, sondern
im module File::Copy lädst, was wesentlich sauberer ist, denn das modul
ist es doch, welches File::Copy braucht ("use").
perldoc use
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread file::copy