Skip to content
This repository
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 README
Octocat-spinner-32 bytes.pl
Octocat-spinner-32 escape.pl
Octocat-spinner-32 math.pl
Octocat-spinner-32 num.pl
Octocat-spinner-32 time.pl
README
These are examples for creating fake type methods, called
"virtual methods". See examples/output/vmethods/* for the
outputs.

Just for getting the idea:

bytes.pl

    5.bytes                   == 5
    1.megabyte                == 1048576
    etc.
    
time.pl

    1.second                  == 1
    2.seconds                 == 2
    1.minute                  == 60
    10.minutes                == 600
    1.hour                    == 3600
    etc.
    
    10.minutes.ago            == time()-600
    10.minutes.from_now       == time()+600
    10.minutes.until(x)       == x-600
    10.minutes.since(x)       == x+600
    
escape.pl

    "1<2".escape(:lang<html>) == "1&lt;2"
Something went wrong with that request. Please try again.