Using a hash as a reference is deprecated at /usr/bin/get_iplayer line xxxx repeated 8 times

dinkypumpkin dinkypumpkin at gmail.com
Mon Mar 11 07:02:29 EDT 2013


On 11/03/2013 09:28, Roger Burton West wrote:
> On Mon, Mar 11, 2013 at 12:33:16AM +0000, David Woodfall wrote:
>> Is there any problem with commenting out 'use strict' to avoid these
>> lines?
>
> That every time "use strict" is turned off, it comes back to bite one
> in the bum, usually within a week or so?
>
> A better approach if the code can't be fixed is:
>
> {
>    no strict;
>    # problematic code goes here
> }

An alternative would be "no warnings 'deprecated';" to target just 
deprecation warnings.

This particular deprecation was made years ago, so it seems like someone 
would have noticed it in get_iplayer long before now. The warning 
doesn't appear on any of my systems, even with -w.  It would help if you 
provided the locations of the warnings instead of just "xxxx", an 
example command that generates the warnings, your OS and get_iplayer 
version.




More information about the get_iplayer mailing list