[MINC-users] DEPRECATED warning in sharpen_volume

Peter Wendorff peter.wendorff at c-lab.de
Tue Jun 4 08:26:49 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I'm working with freesurfer as a software developer in a cloud
project. My task is to enable control of freesurfer via network (e.g.
REST interfaces).

That works fine so far, but I stumbled over the following pearl
deprecated warning, that originate from MRI, and for which the
freesurfer mailing list people sent me to this list.
The warning

"Use of ?PATTERN? without explicit operator is deprecated at
/usr/local/freesurfer//mni/bin/sharpen_volume line 153."

get's printed to the log files repeatingly. I'm not a pearl
expert, but I think, it's due to a more up to date pearl version used
here, that deprecated the usage of ? delimiters for patterns without
explicit operator.
Using / as a delimiter works fine.

I changed that locally to (new line 153):

   ($output_volume =~ /^([\S]+).mnc/) && ($base_name = $1) ||
      die "sharpen_volume failed: output volume does not appear to be"
      ." a minc volume.\n";

(the original code here was):
   ($output_volume =~ ?^([\S]+).mnc?) && ($base_name = $1) ||
      die "sharpen_volume failed: output volume does not appear to be"
      ." a minc volume.\n";



I'm not sure this is the best solution. It's even not strictly
necessary to change this - it's only a warning that's thrown; but I
think, it's useful.

How can I submit this as a patch?
Is it enough to report it here? What to do?

regards
Peter Wendorff

P.S.: For referene the header parameters of my sharpen_volume for
revision comparison:

#----------------------------------------------------------------------------

#$RCSfile: sharpen_volume.in,v $
#$Revision: 1.1 $
#$Author: bert $
#$Date: 2003/04/16 14:29:34 $
#$State: Exp $
#---------------------------------------------------------------------------
# ------------------------------ MNI Header
- ----------------------------------
#@NAME       : sharpen_volume
#@INPUT      :
#@OUTPUT     :
#@RETURNS    :
#@DESCRIPTION: modifies intensities so as to produce a sharper histogram
#@METHOD     :
#@GLOBALS    :
#@CALLS      :
#@CREATED    : February 28, 1996
#@MODIFIED   :
#-----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGt3QMACgkQi8ffXNvWmYR6QQCfcWQpwuwK2TlpVLAmoLkH2h8M
YaEAn2XAD8BEHn0qXwcgd/MQ7L+llCr9
=l2GU
-----END PGP SIGNATURE-----


More information about the MINC-users mailing list