[Vienna-pm] Cave colon!

Peter J. Holzer hjp-vienna-pm-list at hjp.at
Sun Jun 6 02:23:10 CDT 2004


Also, Meinereiner schreibt ein Package namens Bar::Foo (ok, ist gelogen,
aber ich will noch nicht über ungelegte Eier gackern) und weil ich gern
schöne, sprechende Directorynamen habe, mache ich das ganze in einem
Directory namens "Bar::Foo":

bernon:~/tmp 9:06 109% cd Bar::Foo 
bernon:~/tmp/Bar::Foo 9:06 110% ls
Build*  Build.PL  _build/  blib/  lib/  t/
bernon:~/tmp/Bar::Foo 9:06 111% perl Build.PL 
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'Bar-Foo' version ''
bernon:~/tmp/Bar::Foo 9:06 112% ./Build 
bernon:~/tmp/Bar::Foo 9:06 113% ./Build test
t/01test....NOK 1#     Failed test (t/01test.t at line 8)                    
#     Tried to use 'Bar::Foo'.
#     Error:  Can't locate Bar/Foo.pm in @INC (@INC contains: /home/hjp/tmp/Bar/
5.8.3/i386-linux-thread-multi /home/hjp/tmp/Bar/5.8.3 /home/hjp/tmp/Bar/i386-lin
ux-thread-multi /home/hjp/tmp/Bar/5.8.2 /home/hjp/tmp/Bar/5.8.1 /home/hjp/tmp/Ba
r/5.8.0 /home/hjp/tmp/Bar Foo/blib/lib/5.8.3/i386-linux-thread-multi Foo/blib/li
[...]
dor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1
 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at (eval 1) line
 2.
# Looks like you failed 1 tests of 1.
t/01test....dubious                                                          
        Test returned status 1 (wstat 256, 0x100)
Scalar found where operator expected at (eval 166) line 1, near "'int'  $__val"
        (Missing operator before   $__val?)
DIED. FAILED test 1
        Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/01test.t     1   256     1    1 100.00%  1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
zsh: exit 2     ./Build test

Hmm, schaut irgendwie nicht gut aus. Mit anderen Packages (inklusive
Domms Glotze::Abend) funktioniert Build aber. Was habe ich anders
gemacht? Nachdem das Problem ein paar Tage lang abgelegen ist, hatte ich
heute die Idee, das Directory umzubenennen:

bernon:~/tmp/Bar::Foo 9:06 114% cd ..
bernon:~/tmp 9:06 115% mv Bar::Foo Bar-Foo
bernon:~/tmp 9:06 116% cd Bar-Foo 
bernon:~/tmp/Bar-Foo 9:06 117% perl Build.PL      
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'Bar-Foo' version ''
bernon:~/tmp/Bar-Foo 9:06 118% ./Build            
bernon:~/tmp/Bar-Foo 9:06 119% ./Build test       
t/01test....ok                                                               
All tests successful.
Files=1, Tests=1,  1 wallclock secs ( 0.05 cusr +  0.01 csys =  0.06 CPU)

Gewonnen!

Auf die Idee muss man erst mal kommen. (Im Nachhinein fällt mir
natürlich auf, dass Windows- und Mac-(Classic)-User mit dem Directory
auch keine große Freude gehabt hätten)

	hp

-- 
   _  | Peter J. Holzer    | I think we need two definitions:
|_|_) | Sysadmin WSR       | 1) The problem the *users* want us to solve
| |   | hjp at hjp.at         | 2) The problem our solution addresses.
__/   | http://www.hjp.at/ |    -- Phillip Hallam-Baker on spam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/vienna-pm/attachments/20040606/d5539b3e/attachment.bin


More information about the Vienna-pm mailing list