[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using a perl lib from postinst



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tollef Fog Heen schrieb:
> ]] Dominique Dumont 
> 
> | Since the postinst is a shell script, you cannot call directly the
> | perl lib.
> 
> Postinsts can be written in any language, including perl, so he could
> just write it in perl and use the relevant module.
> 

Yep and what is with:
#!/bin/sh
# some foo to be inserted here
perl -e -MMy::Module 'My::Module->do_something_nasty();'

- --
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatthaei@debian.org
        patrick@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkr9r3cACgkQ2XA5inpabMfA3wCgjML8iAbYj5vo4fZtElLr9zYc
pukAnjFCDQITemD1CkkYOiO9efllXte8
=NOTC
-----END PGP SIGNATURE-----


Reply to: