perlfaq5 - Files and Formats

NAME VERSION DESCRIPTIONHow do I flush/unbuffer an output filehandle? Why must I do this? How do I change, delete, or insert a line in a file, or append to the beginning of a file? How do I count the number of lines in a file? How do I delete the last N lines from a file? How can I use Perl's -i option from within a program? How can I copy a file? How do I make a temporary file name? How can I manipulate fixed-record-length files? How can I make a filehandle local to a subroutine? How

perlfaq4 - Data Manipulation

NAME VERSION DESCRIPTION Data: NumbersWhy am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)? Why is int() broken? Why isn't my octal data interpreted correctly? Does Perl have a round() function? What about ceil() and floor()? Trig functions? How do I convert between numeric representations/bases/radixes? Why doesn't & work the way I want it to? How do I multiply matrices? How do I perform an operation on a series of integers? How can

perlfaq3 - Programming Tools

NAME VERSION DESCRIPTIONHow do I do (anything)? How can I use Perl interactively? How do I find which modules are installed on my system? How do I debug my Perl programs? How do I profile my Perl programs? How do I cross-reference my Perl programs? Is there a pretty-printer (formatter) for Perl? Is there an IDE or Windows Perl Editor? Where can I get Perl macros for vi? Where can I get perl-mode or cperl-mode for emacs? How can I use curses with Perl? How can I write a GUI (X, Tk, Gtk, etc.)

perlfaq2 - Obtaining and Learning about Perl

NAME VERSION DESCRIPTIONWhat machines support Perl? Where do I get it? How can I get a binary version of Perl? I don't have a C compiler. How can I build my own Perl interpreter? I copied the Perl binary from one machine to another, but scripts don't work. I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work? What modules and extensions are available for Perl? What is CPAN? Where can I get information on Perl? What is perl.com? Pe

perlfaq1 - General Questions About Perl

NAME VERSION DESCRIPTIONWhat is Perl? Who supports Perl? Who develops it? Why is it free? Which version of Perl should I use? What are Perl 4, Perl 5, or Perl 6? What is Perl 6? How stable is Perl? How often are new versions of Perl released? Is Perl difficult to learn? How does Perl compare with other languages like Java, Python, REXX, Scheme, or Tcl? Can I do [task] in Perl? When shouldn't I program in Perl? What's the difference between "perl" and "Perl"? What is a JAPH? How can I convince

perlfaq - frequently asked questions about Perl

NAME VERSION DESCRIPTIONWhere to find the perlfaq How to use the perlfaq How to contribute to the perlfaq What if my question isn't answered in the FAQ? TABLE OF CONTENTS THE QUESTIONSthe perlfaq1 manpage: General Questions About Perl the perlfaq2 manpage: Obtaining and Learning about Perl the perlfaq3 manpage: Programming Tools the perlfaq4 manpage: Data Manipulation the perlfaq5 manpage: Files and Formats the perlfaq6 manpage: Regular Expressions the perlfaq7 manpage: General Perl Language

perlexperiment - A listing of experimental features in Perl

NAME DESCRIPTIONCurrent experiments Accepted features Removed features SEE ALSO AUTHORS COPYRIGHT LICENSE NAME perlexperiment - A listing of experimental features in Perl DESCRIPTION This document lists the current and past experimental features in the perl core. Although all of these are documented with their appropriate topics, this succinct listing gives you an overview and basic facts about their status. So far we've merely tried to find and list the experimental features and infer thei

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

perlebcdic - Considerations for running Perl on EBCDIC platforms

NAME DESCRIPTION COMMON CHARACTER CODE SETSASCII ISO 8859 Latin 1 (ISO 8859-1) EBCDIC Unicode code points versus EBCDIC code points Unicode and UTF Using Encode SINGLE OCTET TABLESTable in hex, sorted in 1047 order IDENTIFYING CHARACTER CODE SETS CONVERSIONSutf8::unicode_to_native() and utf8::native_to_unicode() tr/// iconv C RTL OPERATOR DIFFERENCES FUNCTION DIFFERENCES REGULAR EXPRESSION DIFFERENCES SOCKETS SORTINGIgnore ASCII vs. EBCDIC sort differences. Use a sort helper function MONO

perldtrace - Perl's support for DTrace

NAME SYNOPSIS DESCRIPTION HISTORY PROBES EXAMPLES REFERENCES SEE ALSO AUTHORS NAME perldtrace - Perl's support for DTrace SYNOPSIS # dtrace -Zn 'perl::sub-entry, perl::sub-return { trace(copyinstr(arg0)) }' dtrace: description 'perl::sub-entry, perl::sub-return ' matched 10 probes # perl -E 'sub outer { inner(@_) } sub inner { say shift } outer("hello")' hello (dtrace output) CPU ID FUNCTION:NAME 0 75915 Perl_pp_entersub:sub-entry BEGIN 0 75915 Per