Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
guiHive
Commits
b58295d7
Commit
b58295d7
authored
Apr 20, 2018
by
Matthieu Muffato
Browse files
Avoid warning if $scalar is not defined
parent
7e10a088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
scripts/lib/version_check.pm
scripts/lib/version_check.pm
+1
-0
No files found.
scripts/lib/version_check.pm
View file @
b58295d7
...
...
@@ -40,6 +40,7 @@ use vars qw(@ISA @EXPORT);
# Doesn't fit well in this module. Should be in a more general one
sub
stringify_if_needed
{
my
(
$scalar
)
=
@_
;
return
unless
defined
$scalar
;
if
((
ref
$scalar
)
or
(
$scalar
=~
/^\[.*\]$/
)
or
(
$scalar
=~
/^{.*}$/
))
{
local
$
Data::Dumper::
Indent
=
0
;
# we want everything on one line
local
$
Data::Dumper::
Terse
=
1
;
# and we want it without dummy variable names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment