Problem packing Java files whose name includes a $

Antonio Bonifati <[email protected]> Wed, 9 Mar 2011 11:01:23 +0000
Newsgroups gmane.comp.lang.perl.modules.extutils-makemaker.devel
Message-ID <[email protected]>
I am trying to package some compiled Java anonymous classes within a Perl package but found it to be impossible. I need them because my code uses Inline::Java.

The problem lies in the filenames: e.g. they contain $1 (e.g. ClassName$1.class). In the Makefile generated by perl Makefile.PL such file names are not quoted and thus they erroneously become "ClassName.class" because the special shell variables $1, $2, ... etc are substituted for empty strings. Is there any cure for that other than packaging all my classes as JARs?

Quoting the file names containing a $ in the MANIFEST (e.g. 'ClassName$1.class', 'ClassName\$1.class', ClassName\$1.class) does not help here.

Thank you for your help. CPAN is wonderful!

-- 
regards / saluti
--
Antonio Bonifati (sysadmin, web programmer / sistemista, programmatore web)
English mobile: +44 7400977350
BLOG: http://antonio-bonifati.blogspot.com
My profile: http://www.google.com/profiles/antonio.bonifati

skype: antonio.bonifati
msn: [email protected]
gtalk: [email protected]
--
There are no hard distinctions between what is real and what is unreal, nor between what is true and what is false. A thing is not necessarily either true or false; it can be both true and false. 
Harold Pinter

Non vi sono distinzioni nette tra ciò che è reale e ciò che è irreale, nè tra quello che è vero e quello che è falso. Una cosa non è necessariamente vera o falsa, può essere sia vera che falsa allo stesso tempo