wrappers/pl_Date_Parse.cmx
examples/test.cmo: perl.cmi
examples/test.cmx: perl.cmx
+wrappers/pl_Data_Dumper.cmo: perl.cmi
+wrappers/pl_Data_Dumper.cmx: perl.cmx
wrappers/pl_Date_Calc.cmo: perl.cmi
wrappers/pl_Date_Calc.cmx: perl.cmx
wrappers/pl_Date_Format.cmo: perl.cmi
test/130-hv-iter.ml
test/140-ref.ml
wrappers/.cvsignore
+wrappers/pl_Data_Dumper.ml
wrappers/pl_Date_Calc.ml
wrappers/pl_Date_Format.ml
wrappers/pl_Date_Parse.ml
# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.29 2005-01-28 23:09:30 rich Exp $
+# $Id: Makefile,v 1.30 2005-01-31 15:23:23 rich Exp $
include Makefile.config
OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS)
WRAPPERS := \
+ wrappers/pl_Data_Dumper.cmo \
wrappers/pl_Date_Calc.cmo \
wrappers/pl_Date_Format.cmo \
wrappers/pl_Date_Parse.cmo \
--- /dev/null
+(** Wrapper around Perl [Data::Dumper] class.
+ *
+ * Copyright (C) 2005 Merjis Ltd.
+ *
+ * $Id: pl_Data_Dumper.ml,v 1.1 2005-01-31 15:23:23 rich Exp $
+ *)
+
+open Perl
+
+let _ = eval "use Data::Dumper"
+
+class data_dumper (sv : sv) =
+
+object (self)
+ method sv = sv
+
+
+
+end
+
+let new_ r =
+ let sv = call_class_method "Data::Dumper" "new" [r] in
+ new data_dumper sv
+
+let dump r =
+ string_of_sv (call_class_method "Data::Dumper" "Dump" [r])