ragraph visualization problem
Eric Kinzie via Argus-info
argus-info at lists.andrew.cmu.edu
Thu Jan 12 15:02:47 EST 2017
On Thu Jan 12 20:03:40 +0100 2017, Rashad Suleymanov via Argus-info wrote:
> Hi,
> I am trying to run ragraph in Ubuntu 16.04, but getting following error:
> Calling POSIX::tmpnam() is deprecated at /usr/local/bin/ragraph line 40.
>
> It seems perl package has been deprecated, do you know how to fix it or
> alternative to visualize it?
> --
> BR,
> Rashad Suleymanov
Rashad, it seems that File::Temp is the accepted way to do this now.
I haven't thoroughly tested this, but try the following change:
---
examples/ragraph/ragraph.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/ragraph/ragraph.pl b/examples/ragraph/ragraph.pl
index 36a689f..a7961b7 100644
--- a/examples/ragraph/ragraph.pl
+++ b/examples/ragraph/ragraph.pl
@@ -34,7 +34,8 @@ use strict;
# Used modules
use RRDs;
-use POSIX;
+use POSIX qw/ strftime /;
+use File::Temp qw/ :POSIX /;
# Global variables
my $tmpfile = tmpnam();
--
2.9.3 (Apple Git-75)
More information about the argus
mailing list