Language::Befunge::IP::lib::STRN - string extension
The STRN fingerprint (0x5354524E) allows to work with strings.
Create a new STRN instance.
Print $str on STDOUT.
$str
Input a string and push it back on the stack.
Push back $s1 . $s2 on the stack.
$s1 . $s2
Push back $s1 cmp $s2 on the stack.
$s1 cmp $s2
Push back the longest suffix of $s1 starting with $s2.
$s1
$s2
Push back on the stack substr $s, 0, $n (left of string).
substr $s, 0, $n
Push back on the stack substr $s, m, $n (middle of string).
substr $s, m, $n
Push back $length of $str.
$length
Push back on the stack substr $s, -$n (right of string).
substr $s, -$n
The following functions take the storage offset into account.
Read string from $vec, using a velocity of (1,0, ..) till it finds a null cell. Reflects if no null cell found.
$vec
Put string $str at position $vec.
Push back the string representation of $n.
$n
Push back the numerical value of str.
str
Language::Befunge, http://www.rcfunge98.com/rcsfingers.html#STRN.
Jerome Quelin, <jquelin@cpan.org>
<jquelin@cpan.org>
Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Language::Befunge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Befunge
CPAN shell
perl -MCPAN -e shell install Language::Befunge
For more information on module installation, please visit the detailed CPAN module installation guide.