Thread Richtige Pfade beim Community Script (21 answers)
Opened by awangard at 2015-02-07 21:30

pq
 2015-02-07 22:09
#179546 #179546
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
aus der doku (steht ganz oben, leicht zu finden):
Code (perl): (dl )
1
2
3
4
5
6
7
        use FindBin;
        use lib "$FindBin::Bin/../lib";

        or

        use FindBin qw($Bin);
        use lib "$Bin/../lib";

also egal welche variante, die variable ist initialisiert.
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 Richtige Pfade beim Community Script