[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-unattended/var/se3/unattended/install/linuxaux/opt/perl/lib/5.10.0/pod/ -> perlhack.pod (summary)

(no description)

File Size: 3552 lines (127 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  edit()
  that()

Functions
Functions that are not part of a class:

edit(if [ -L $1 ]; thenmv $1 $1.origcp $1.orig $1vi $1elsevi $1fi}function unedit {if [ -L $1.orig ]; thenrm $1mv $1.orig $1fi}Replace "vi" with your favorite flavor of editor.Here is another function which will quickly generate a patch for thefiles which have been edited in your symlink tree:mkpatchorig()   X-Ref
No description

that(to be explicitly marked as exported. See the discussion aboutF<embed.pl> in L<perlguts>.=item *Exporting your new functionThe new shiny result of either genuine new functionality or yourarduous refactoring is now ready and correctly exported. So whatcould possibly go wrong?Maybe simply that your function did not need to be exported in thefirst place. Perl has a long and not so glorious history of exportingfunctions that it should not have.If the function is used only inside one source code file, make itstatic. See the discussion about F<embed.pl> in L<perlguts>.If the function is used across several files, but intended only forPerl's internal use (and this should be the common case)   X-Ref
No description



Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1