Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with truncate - prototype issue [rt.cpan.org #56316] #97

Open
toddr opened this issue Jan 16, 2020 · 2 comments
Open

problem with truncate - prototype issue [rt.cpan.org #56316] #97

toddr opened this issue Jan 16, 2020 · 2 comments

Comments

@toddr
Copy link
Collaborator

toddr commented Jan 16, 2020

Migrated from rt.cpan.org#56316 (status was 'open')

Requestors:
@chorny

From @chorny on 2010-04-06 14:36:59

#perl -c -Mstrict -Mautodie=truncate -e 'truncate(F,0)'
Bareword "F" not allowed while "strict subs" in use at -e line 1.

#perl -c -Mstrict -e 'truncate(F,0)'
-e syntax OK

See also http://rt.perl.org/rt3/Ticket/Display.html?id=3311

From [email protected] on 2013-10-13 09:56:18
:

Hi,

This is caused by "prototype(q{CORE::truncate))" returning "$$". At the current time, I am not sure we can fix this in autodie.

~Niels

@Leont
Copy link
Member

Leont commented Dec 29, 2021

This can be fixed by using a *$ prototype, and resolving it using Symbol::quality_to_ref

@toddr
Copy link
Collaborator Author

toddr commented Jan 27, 2023

@Leont Are you up for submitting a PR on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants