Help for this page

Select Code to Download


  1. or download this
    [% FOREACH file=files %]
        [% IF ( matches = file.date.match('dd/mm/(\d+)') ) %]
            <a href='#'>[% matches.0 %]</a>
        [% END %]
    [% END %]
    
  2. or download this
       print ul(
                 li({-type=>'disc'},['Sneezy','Doc','Sleepy','Happy'])
               );
    
  3. or download this
       <ul>
         <li type="disc">Sneezy</li>
    ...
         <li type="disc">Sleepy</li>
         <li type="disc">Happy</li>
       </ul>
    
  4. or download this
    use Rex -feature => ['1.0'];
    desc "Get Uptime";
    task "uptime", sub {
      say run "uptime";
    }
    
  5. or download this
             CPX '3'          ;# Year starts in March to bypass
             BCS 'MARCH'      ;# leap year problem
             DEY              ;# If Jan or Feb, decrement year
    MARCH:   EOR '$7F'        ;# Invert A so carry works right
    ...