warnin...lproto(3pm)

πŸ“¦
version 0.001003 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

warnings::illegalproto β€” bestie, this one turns OFF the illegal prototype warnings on old Perls πŸ’…

(it's the warnin...lproto(3pm) page btw, living in the User Contributed Perl Documentation corner of the manual, so if you were looking for it under that chopped-up name, you found it 🫢)


🌸 VERSION 🌸

version 0.001003 ✨


πŸŽ€ SYNOPSIS πŸŽ€

use strictures 1;
use signatures;
no warnings::illegalproto;

sub ($foo) { ... }

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• this module exists so you can use strictures AND use signatures at the same time, like, together, no drama. Thanks to mst, on Perl 5.12 and up this is literally trivial, but before that? bestie, a strange dance had to be done πŸ’€ and not the cute kind.

This module does the right thing for both before and after 5.12 β€” it just handles it, main character energy πŸ‘‘. But if you wanna use the native 5.12-and-greater behaviour without this module, feel free to cargo cult the following:

no if $[ >= 5.012, warnings => 'illegalproto';
no if $[ < 5.012, 'warnings::illegalproto';

no cap, that's the whole vibe πŸ”₯


πŸ’– AUTHOR πŸ’–

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>


This software is copyright (c) 2014 by Arthur Axel "fREW" Schmidt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


okay that's the page!! πŸŽ€ this whole thing was generated by perl v5.34.0 and it's dated 2022-06-28, so shoutout to the toolchain for bringing you this knowledge bestie, slay πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from