Conditional Operator

Conditional Operator Ternary "?:" is the conditional operator, just as in C. It works much like an if-then-else. If the argument before the ? is true, the argument before the : is returned, otherwise the argument after the : is returned. For example: printf "I have %d dog%s.\n", $n, ($n == 1) ? "" : "s"; Scalar or list context propagates downward into the 2nd or 3rd argument, whichever is selected. $x = $ok ? $y : $z; # get a scalar @x = $ok ? @y : @z; # get an array $x = $ok ? @y : @z;

Compress::Zlib - Interface to zlib compression library

NAME SYNOPSIS DESCRIPTIONNotes for users of Compress::Zlib version 1 GZIP INTERFACEExamples Compress::Zlib::memGzip Compress::Zlib::memGunzip COMPRESS/UNCOMPRESS Deflate Interface*($d, $status) = deflateInit( [OPT] )* *($out, $status) = $d->deflate($buffer)* *($out, $status) = $d->flush()* =head2 *($out, $status) = $d->flush($flush_type)* *$status = $d->deflateParams([OPT])* *$d->dict_adler()* *$d->msg()* *$d->total_in()* *$d->total_out()* Example Inflate Interface

Compress::Raw::Zlib - Low-Level Interface to zlib compression library

NAME SYNOPSIS DESCRIPTION Compress::Raw::Zlib::Deflate*($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) * *$status = $d->deflate($input, $output)* *$status = $d->flush($output [, $flush_type]) * *$status = $d->deflateReset() * *$status = $d->deflateParams([OPT])* *$status = $d->deflateTune($good_length, $max_lazy, $nice_length, $max_chain)* *$d->dict_adler()* *$d->crc32()* *$d->adler32()* *$d->msg()* *$d->total_in()* *$d->total_out()* *$d->get_Strat

Compress::Raw::Bzip2 - Low-Level Interface to bzip2 compression library

NAME SYNOPSIS DESCRIPTION Compression($z, $status) = new Compress::Raw::Bzip2 $appendOutput, $blockSize100k, $workfactor; $status = $bz->bzdeflate($input, $output); $status = $bz->bzflush($output); $status = $bz->bzclose($output); Example Uncompression($z, $status) = new Compress::Raw::Bunzip2 $appendOutput, $consumeInput, $small, $verbosity, $limitOutput; $status = $z->bzinflate($input, $output); Miscmy $version = Compress::Raw::Bzip2::bzlibversion(); Constants SEE ALSO AUTHOR

Comma Operator

Comma Operator Binary "," is the comma operator. In scalar context it evaluates its left argument, throws that value away, then evaluates its right argument and returns that value. This is just like C's comma operator. In list context, it's just the list argument separator, and inserts both its arguments into the list. These arguments are also evaluated from left to right. The => operator (sometimes pronounced "fat comma") is a synonym for the comma except that it causes a word on its left

cmp

cmp These operators are documented in perlop.

closedir

closedir DIRHANDLE Closes a directory opened by opendir and returns the success of that system call.

close

close FILEHANDLE close Closes the file or pipe associated with the filehandle, flushes the IO buffers, and closes the system file descriptor. Returns true if those operations succeed and if no error was reported by any PerlIO layer. Closes the currently selected filehandle if the argument is omitted. You don't have to close FILEHANDLE if you are immediately going to do another open on it, because open closes it for you. (See open.) However, an explicit close on an input file resets the line cou

Class::Struct - declare struct-like datatypes as Perl classes

NAME SYNOPSIS DESCRIPTIONThe struct() function Class Creation at Compile Time Element Types and Accessor Methods Initializing with new EXAMPLES Author and Modification History NAME Class::Struct - declare struct-like datatypes as Perl classes SYNOPSIS use Class::Struct; # declare struct, based on array: struct( CLASS_NAME => [ ELEMENT_NAME => ELEMENT_TYPE, ... ]); # declare struct, based on hash: struct( CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... }); pack

chroot

chroot FILENAME chroot This function works like the system call by the same name: it makes the named directory the new root directory for all further pathnames that begin with a / by your process and all its children. (It doesn't change your current working directory, which is unaffected.) For security reasons, this call is restricted to the superuser. If FILENAME is omitted, does a chroot to $_ . NOTE: It is good security practice to do chdir("/") (to the root directory) immediately after a ch