Skip to content

convert unsigned integer to ip address with polymod #30

@timo

Description

@timo

please consider this example for better readability than the +>(8*$_) version and not having to use experimental :pack like the one using "pack".

perl6 -e 'say join ".", 2130706433.polymod(256, 256, 256).reverse'
127.0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions