I have a perl module with data definitions (hashes, arrays, etc.), is there any way I can access that data from inside a bash script? This isn't working for me...
#!/bin/bash
perl -e 'use Data'
tests=`perl -e "@tests"; `
echo "Perl tests = ${tests}" # prints "Perl tests = "
The module looks something like this:
our @EXPORT_OK = qw( @tests );
our @tests = qw( 1 2 3 4 5 );