summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-03 14:42:10 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-03 14:45:42 +0100
commit27ebf517fae972eee49ae5911a03fabe5f4b6e54 (patch)
treeb579c67cba1ed4b0f5a0bfb6e7117163cca0c5e1 /perl
parent917550a117904ec1a06b77a7870a147014d71adb (diff)
downloadlibguestfs-27ebf517fae972eee49ae5911a03fabe5f4b6e54.tar.gz
libguestfs-27ebf517fae972eee49ae5911a03fabe5f4b6e54.tar.xz
libguestfs-27ebf517fae972eee49ae5911a03fabe5f4b6e54.zip
perl, python, ruby: Fix comments on call to close method.
Make the comments consistent. Also make the Perl example call $g->close explicitly so it is consistent with the other examples.
Diffstat (limited to 'perl')
-rwxr-xr-xperl/examples/create_disk.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl/examples/create_disk.pl b/perl/examples/create_disk.pl
index 49538a5f..fa15bc7b 100755
--- a/perl/examples/create_disk.pl
+++ b/perl/examples/create_disk.pl
@@ -57,4 +57,7 @@ $g->mkdir ("/foo");
# the disk image.
$g->upload ("/etc/resolv.conf", "/foo/resolv.conf");
-exit 0
+# Note also that handles are automatically closed if they are
+# reaped by reference counting. You only need to call close
+# if you want to close the handle right away.
+$g->close ();