Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Yet Another XS Tutorial

by ikegami (Pope)
on Nov 20, 2013 at 15:22 UTC ( #1063543=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    PPCODE:
        int i;
        f();
    
  2. or download this
    PREINIT:
        int i;
    PPCODE:
        f();
    
  3. or download this
    PPCODE:
        {
            int i;
            f();
        }
    
  4. or download this
    say lengths1(substr("abc", 0, 1));  # 0
    
  5. or download this
    say lengths1("abc");  # 16
    
  6. or download this
    $_="\x{A0}";               say lengths1($_), "=", length($_);  # 1=1
    $_="\x{A0}\x{2660}"; chop; say lengths1($_), "=", length($_);  # 2=1
    
  7. or download this
    say lengths1(456), "=", length(456);  # 0=3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2019-04-22 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (112 votes). Check out past polls.

    Notices?