perlembed - how to embed perl in your C program

NAME DESCRIPTIONPREAMBLE ROADMAP Compiling your C program Adding a Perl interpreter to your C program Calling a Perl subroutine from your C program Evaluating a Perl statement from your C program Performing Perl pattern matches and substitutions from your C program Fiddling with the Perl stack from your C program Maintaining a persistent interpreter Execution of END blocks $0 assignments Maintaining multiple interpreter instances Using Perl modules, which themselves use C libraries, from your

say

say FILEHANDLE LIST say FILEHANDLE say LIST say Just like print, but implicitly appends a newline. say LIST is simply an abbreviation for { local $\ = "\n"; print LIST } . To use FILEHANDLE without a LIST to print the contents of $_ to it, you must use a real filehandle like FH , not an indirect one like $fh . This keyword is available only when the "say" feature is enabled, or when prefixed with CORE:: ; see feature. Alternately, include a use v5.10 or later to the current scope.

%SIG

%SIG The hash %SIG contains signal handlers for signals. For example: sub handler { # 1st argument is signal name my($sig) = @_; print "Caught a SIG$sig--shutting down\n"; close(LOG); exit(0); } $SIG{'INT'} = \&handler; $SIG{'QUIT'} = \&handler; ... $SIG{'INT'} = 'DEFAULT'; # restore default action $SIG{'QUIT'} = 'IGNORE'; # ignore SIGQUIT Using a value of 'IGNORE' usually has the effect of ignoring the signal, except for the CHLD signal. See perlipc for mo

$^A

$^A The current value of the write() accumulator for format() lines. A format contains formline() calls that put their result into $^A . After calling its format, write() prints out the contents of $^A and empties. So you never really see the contents of $^A unless you call formline() yourself and then look at it. See perlform and formline PICTURE,LIST.

chomp

chomp VARIABLE chomp( LIST ) chomp This safer version of chop removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module). It returns the total number of characters removed from all its arguments. It's often used to remove the newline from the end of an input record when you're worried that the final record may be missing its newline. When in paragraph mode ($/ = '' ), it removes all trailing newlines from the string. Whe

c2ph, pstruct - Dump C structures as generated from cc -g -S stabs

NAME SYNOPSISOPTIONS DESCRIPTION NAME c2ph, pstruct - Dump C structures as generated from cc -g -S stabs SYNOPSIS c2ph [-dpnP] [var=val] [files ...] OPTIONS Options: -w wide; short for: type_width=45 member_width=35 offset_width=8 -x hex; short for: offset_fmt=x offset_width=08 size_fmt=x size_width=04 -n do not generate perl code (default when invoked as pstruct) -p generate perl code (default when invoked as c2ph) -v generate perl code, with C decls as comments -i do NOT reco

SelectSaver - save and restore selected file handle

NAME SYNOPSIS DESCRIPTION NAME SelectSaver - save and restore selected file handle SYNOPSIS use SelectSaver; { my $saver = SelectSaver->new(FILEHANDLE); # FILEHANDLE is selected } # previous handle is selected { my $saver = SelectSaver->new; # new handle may be selected, or not } # previous handle is selected DESCRIPTION A SelectSaver object contains a reference to the file handle that was selected when it was created. If its new method gets an extra parameter, then that

Pod::Perldoc::ToXml - let Perldoc render Pod as XML

NAME SYNOPSIS DESCRIPTION SEE ALSO COPYRIGHT AND DISCLAIMERS AUTHOR NAME Pod::Perldoc::ToXml - let Perldoc render Pod as XML SYNOPSIS perldoc -o xml -d out.xml Some::Modulename DESCRIPTION This is a "plug-in" class that allows Perldoc to use Pod::Simple::XMLOutStream as a formatter class. This is actually a Pod::Simple::XMLOutStream subclass, and inherits all its options. You have to have installed Pod::Simple::XMLOutStream (from the Pod::Simple dist), or this class won't work. SEE ALSO Pod:

perlmacos - Perl under Mac OS (Classic)

NAME SYNOPSIS DESCRIPTION AUTHOR NAME perlmacos - Perl under Mac OS (Classic) SYNOPSIS For Mac OS X see README.macosx Perl under Mac OS Classic has not been supported since before Perl 5.10 (April 2004). When we say "Mac OS" below, we mean Mac OS 7, 8, and 9, and not Mac OS X. DESCRIPTION The port of Perl to to Mac OS was officially removed as of Perl 5.12, though the last official production release of MacPerl corresponded to Perl 5.6. While Perl 5.10 included the port to Mac OS, ExtUtils::M

__SUB__

__SUB__ A special token that returns a reference to the current subroutine, or undef outside of a subroutine. The behaviour of __SUB__ within a regex code block (such as /(?{...})/ ) is subject to change. This token is only available under use v5.16 or the "current_sub" feature. See feature.