Bonjour,

J'aimerais générer des fichiers avec du style (gras, souligné...), et donc au format .rtf ou .doc (à moins que vous en connaissiez d'autre? )

J'ai vu que le module Win32::OLE permet notamment de générer des fichiers Microsoft Word. Problème : je travaille sur un Mac et visiblement ce module n'est installable que sur Windows... En tentant de l'installer sur Mac, j'ai obtenu :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cpan[1]> install Win32::OLE                                                     
CPAN: Storable loaded ok (v2.15)
Going to read /private/var/root/.cpan/Metadata
  Database was generated on Tue, 03 Mar 2009 03:27:22 GMT
CPAN: LWP::UserAgent loaded ok (v5.824)
CPAN: Time::HiRes loaded ok (v1.86)
Fetching with LWP:
  http://www.cpan.org/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v0.66)
Going to read /private/var/root/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE
Fetching with LWP:
  http://www.cpan.org/modules/02packages.details.txt.gz
Going to read /private/var/root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 04 Mar 2009 08:29:51 GMT
...............
  New CPAN.pm version (v1.9304) available.
  [Currently running version is v1.9301]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.
 
 
.............................................................DONE
Fetching with LWP:
  http://www.cpan.org/modules/03modlist.data.gz
Going to read /private/var/root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /private/var/root/.cpan/Metadata
Running install for module 'Win32::OLE'
Running make for J/JD/JDB/Win32-OLE-0.1709.tar.gz
Fetching with LWP:
  http://www.cpan.org/authors/id/J/JD/JDB/Win32-OLE-0.1709.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
  http://www.cpan.org/authors/id/J/JD/JDB/CHECKSUMS
Checksum for /private/var/root/.cpan/sources/authors/id/J/JD/JDB/Win32-OLE-0.1709.tar.gz ok
Scanning cache /private/var/root/.cpan/build for sizes
............................................................................DONE
Win32-OLE-0.1709/
[...]
CPAN: File::Temp loaded ok (v0.21)
 
  CPAN.pm: Going to build J/JD/JDB/Win32-OLE-0.1709.tar.gz
 
OS unsupported
Warning: No success on command[/usr/bin/perl Makefile.PL]
  JDB/Win32-OLE-0.1709.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 JDB/Win32-OLE-0.1709.tar.gz                  : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 65280
D'où ma question :
-> existe-t-il un module permettant de faire la même chose sur Mac (à moins qu'il existe une solution pour l'installer sur Mac?)
-> Sinon, est-il possible de générer des fichiers stylés à partir de Perl?