thanks Peter,

that's actually MNI code, so you might want to report it to them.

Bruce
On Wed, 15 
May 2013, Peter Wendorff wrote:

> -----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:
>
> "Use of ?PATTERN? without explicit operator is deprecated at
> /usr/local/freesurfer//mni/bin/sharpen_volume line 153."
>
> Which has been 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 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/
>
> iEYEARECAAYFAlGTa5kACgkQi8ffXNvWmYSCUQCghMg1EffqfeJK4PSfo20uF8/J
> H0MAnjJc0WbHPf5gLDUw70K8fnQPjS+L
> =g+6e
> -----END PGP SIGNATURE-----
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
>
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to