Perl named operators and builtin subs introduced since 5.6

NameAvailabilityExperimentalIn CORE::Enabling
pragma
Enabling
feature set
__CLASS__Since 5.40Since 5.40use feature qw( class );
__SUB__Since 5.16Since 5.16use feature qw( current_sub );5.16 and up
ADJUSTSince 5.38Since 5.40Since 5.38use feature qw( class );
allSince 5.42Since 5.42Since 5.42use feature qw( keyword_all );
anySince 5.42Since 5.42Since 5.42use feature qw( keyword_any );
blessedSince 5.36From 5.36 until 5.40use builtin qw( blessed );5.40 and up
breakFrom 5.10Since 5.16[1] until 5.38
Deprecated from 5.38 until 5.42
Since 5.16use feature qw( switch );From 5.10
up to 5.36
catchSince 5.34From 5.34 until 5.40Since 5.34use feature qw( try );5.40 and up
ceilSince 5.36From 5.36 until 5.40use builtin qw( ceil );5.40 and up
classSince 5.38Since 5.38Since 5.38use feature qw( class );
continueFrom 5.10Since 5.16[1] until 5.38
Deprecated from 5.38 until 5.42
Since 5.16use feature qw( switch );From 5.10
up to 5.36
created_as_numberSince 5.36Since 5.36use builtin qw( created_as_number );
created_as_stringSince 5.36Since 5.36use builtin qw( created_as_string );
defaultFrom 5.10Since 5.16[1] until 5.38
Deprecated from 5.38 until 5.42
Since 5.16use feature qw( switch );From 5.10
up to 5.36
deferSince 5.36Since 5.36Since 5.36use feature qw( defer );5.40 and up
export_lexicallySince 5.38Since 5.38use builtin qw( export_lexically );
falseSince 5.36From 5.36 until 5.40use builtin qw( false );
fc Since 5.16Since 5.16use feature qw( fc );5.16 and up
fieldSince 5.38Since 5.38Since 5.38use feature qw( class );
floorSince 5.36From 5.36 until 5.40use builtin qw( floor );5.40 and up
finallySince 5.36Since 5.36Since 5.36use feature qw( try );5.40 and up
givenFrom 5.10Since 5.16[1] until 5.38
Deprecated from 5.38 until 5.42
Since 5.16use feature qw( switch );From 5.10
up to 5.36
indexedSince 5.36From 5.36 until 5.40use builtin qw( indexed );5.40 and up
infSince 5.40Since 5.40use builtin qw( inf );
is_boolSince 5.36Since 5.36use builtin qw( is_bool );
is_taintedSince 5.38From 5.38 until 5.40use builtin qw( is_tainted );5.40 and up
is_weakSince 5.36From 5.36 until 5.40use builtin qw( is_weak );5.40 and up
isaSince 5.32From 5.32 until 5.34Since 5.32use feature qw( isa );5.36 and up
load_moduleSince 5.40Since 5.40use builtin qw( load_module );
methodSince 5.38Since 5.38Since 5.38use feature qw( class );
nanSince 5.40Since 5.40use builtin qw( nan );
refaddrSince 5.36From 5.36 until 5.40use builtin qw( refaddr );5.40 and up
reftypeSince 5.36From 5.36 until 5.40use builtin qw( reftype );5.40 and up
saySince 5.10Since 5.16use feature qw( say );5.10 and up
stateSince 5.10Since 5.16use feature qw( state );5.10 and up
stringifySince 5.40Since 5.40use builtin qw( stringify );
trimSince 5.36From 5.36 until 5.40use builtin qw( trim );5.40 and up
trueSince 5.36From 5.36 until 5.40use builtin qw( true );5.40 and up
trySince 5.34From 5.34 until 5.40Since 5.34use feature qw( try );5.40 and up
unweakenSince 5.36From 5.36 until 5.40use builtin qw( unweaken );5.40 and up
weakenSince 5.36From 5.36 until 5.40use builtin qw( weaken );5.40 and up
whenFrom 5.10Since 5.16[1] until 5.38
Deprecated from 5.38 until 5.42
Since 5.16use feature qw( switch );From 5.10
up to 5.36
 
builtin::blessedSince 5.36From 5.36 until 5.40Always available
builtin::ceilSince 5.36From 5.36 until 5.40Always available
builtin::created_as_numberSince 5.36Since 5.36Always available
builtin::created_as_stringSince 5.36Since 5.36Always available
builtin::export_lexicallySince 5.38Since 5.38Always available
builtin::falseSince 5.36From 5.36 until 5.40Always available
builtin::floorSince 5.36From 5.36 until 5.40Always available
builtin::indexedSince 5.36From 5.36 until 5.40Always available
builtin::infSince 5.40Since 5.40Always available
builtin::is_boolSince 5.36Since 5.36Always available
builtin::is_taintedSince 5.38From 5.38 until 5.40Always available
builtin::is_weakSince 5.36From 5.36 until 5.40Always available
builtin::load_moduleSince 5.40Since 5.40Always available
builtin::nanSince 5.40Since 5.40Always available
builtin::refaddrSince 5.36From 5.36 until 5.40Always available
builtin::reftypeSince 5.36From 5.36 until 5.40Always available
builtin::stringifySince 5.40Since 5.40Always available
builtin::trimSince 5.36From 5.36 until 5.40Always available
builtin::trueSince 5.36From 5.36 until 5.40Always available
builtin::unweakenSince 5.36From 5.36 until 5.40Always available
builtin::weakenSince 5.36From 5.36 until 5.40Always available
 
utf8::decodeSince 5.8Always available
utf8::downgradeSince 5.8Always available
utf8::encodeSince 5.8Always available
utf8::is_utf8Since 5.8.1Always available
utf8::native_to_unicodeSince 5.8[2]Always available
utf8::unicode_to_nativeSince 5.8[2]Always available
utf8::upgradeSince 5.8Always available
utf8::validSince 5.8Always available

Notes

Footnotes

  1. Experimental warnings were only added in 5.18, but the switch feature was documented to be experimental since 5.16.
  2. While utf8::native_to_unicode and utf8::unicode_to_native have only been documented since 5.22, they've been available since 5.8.

Updates

  1. Added the keywords from the class feature.
  2. Fixed versions for defer.
  3. Fixed versions for finally.
  4. Added availability in CORE::.
  5. is_tainted, export_lexically, builtin::is_tainted and builtin::export_lexically were missing.
  6. Updated for 5.40.
  7. Updated for 5.42.

In reply to Perl named operators and builtin subs introduced since 5.6 by ikegami
in thread Finding when a feature or keyword was introduced by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.