Help language development. Donate to The Perl Foundation

P5built-ins cpan:ELIZABETH last updated on 2018-06-01

README.md
[![Build Status](https://travis-ci.org/lizmat/P5built-ins.svg?branch=master)](https://travis-ci.org/lizmat/P5built-ins)

NAME
====

P5built-ins - Implement Perl 5's built-in functions

SYNOPSIS
========

    use P5built-ins;   # import all P5 built-in functions supported

    use P5built-ins <tie untie>;  # only import specific ones

    tie my @a, Foo;

DESCRIPTION
===========

This module provides an easy way to import a growing number of built-in functions of Perl 5 in Perl 6. Currently supported at:

    abs caller chdir chomp chop chr closedir cos crypt defined each endgrent
    endnetent endprotoent endpwent endservent exp fc fileno getgrent getgrgid
    getgrnam getlogin getnetbyaddr getnetbyname getnetent getpgrp getppid
    getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam
    getpwuid getservbyname getservbyport getservent gmtime hex index int lc
    lcfirst length localtime log oct opendir ord pack pop print printf push
    quotemeta rand readdir readlink ref reset reverse rewinddir rindex say
    seek seekdir setgrent setnetent setpriority setprotoent setpwent setservent
    shift sin sleep sqrt study substr telldir tie tied times uc ucfirst undef
    unpack unshift untie

The following file test operators are also available:

    -r -w -x -e -f -d -s -z -l

And the following terms:

    __FILE__ __LINE__ __PACKAGE__ __SUB__ SEEK_CUR SEEK_END SEEK_SET
    STDERR STDIN STDOUT

PORTING CAVEATS
===============

Please look at the porting caveats of the underlying modules that actually provide the functionality:

    module        | built-in functions
    --------------+-------------------
    P5caller      | caller
    P5chdir       | chdir
    P5defined     | defined undef
    P5each        | each
    P5fileno      | fileno
    P5getpriority | getpriority setpriority getppid getpgrp
    P5length      | length
    P5localtime   | localtime gmtime
    P5math        | abs cos crypt exp int log rand sin sqrt
    P5opendir     | opendir readdir telldir seekdir rewinddir closedir
    P5pack        | pack unpack
    P5print       | print printf say
    P5readlink    | readlink
    P5ref         | ref
    P5reset       | reset
    P5reverse     | reverse
    P5study       | study
    P5tie         | tie, tied, untie
    P5times       | times
    P5-X          | -r -w -x -e -f -d -s -z -l

AUTHOR
======

Elizabeth Mattijsen <liz@wenzperl.nl>

Source can be located at: https://github.com/lizmat/P5built-ins . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE
=====================

Copyright 2018 Elizabeth Mattijsen

Re-imagined from Perl 5 as part of the CPAN Butterfly Plan.

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.