Everything2
Near Matches
Ignore Exact
Full Text
Everything2

package

created by Azathoth

(thing) by Mihg (4.4 y) (print)   ?   I like it! Sat Nov 13 1999 at 8:52:08

A package is a wonderful object. It can be an actual physical object in which things are placed, or it can be a metaphorical object exisiting only in the mind or on a computer. Physical packages include boxes, bags, and envelopes; metaphorical packages include things like zip files, RPMs, Unix tape archives, and many methods of combining multiple files into one file.

(thing) by BinarOne (6.1 y) (print)   ?   I like it! Sun Apr 02 2000 at 3:20:34

Male genitalia; i.e., the cock and balls.

It is in a man's best interest to keep his package clean.

(thing) by pukesick (2.3 d) (print)   ?   I like it! Thu Apr 20 2000 at 11:04:06

1. A venereal disease. 2. A long prison sentence; any prison term.

- american underworld dictionary - 1950

(thing) by premchai21 (3.2 wk) (print)   ?   I like it! Fri Nov 09 2001 at 1:32:35

In Perl, packages are in effect namespaces, each with its own symbol table. They can also be used as classes in an OO context; see bless. When a package declaration is made, code from that declaration until the end of the innermost block, file, or eval will be carried out in that package. It is also possible to declare no package, in which case no relationship between the (nonexistent) package symbol table and the current variable-name mapping exists, and therefore variables must be either lexical, or with a specific package name given.

local, our, and use vars (and my, sort of) all affect the package symbol table's relationship with the current variable-name mapping, by locally assigning (our) a variable or typeglob name from/to the entry of the same name in the package symbol table, or globally assigning a variable name dynamically to the entry of the same name in whatever package happens to be current (use vars), or saving the state of a package variable and restoring it at the end of the block, file, or eval (local). my is a special case in that it assigns an unqualified variable name to a lexical variable, outside any package; this does not, strictly speaking, deal with the package's symbol table, but the distinction between lexical and package variables can be a source of confusion and is included here for completeness. Variables can also be explicitly specified as being from/in a certain package using a double-colon (::) or single quote (', highly deprecated and about to disappear in Perl 6).

If no package is declared, or given before the double-colon, package main is used.

Usage example:

use strict;               # Currently in package main
package Foo;              # Now in package Foo
use vars qw($u $v);       # Causes $u or $v at any
                          # given point to refer to 
                          # the $u or $v in the current
                          # package
$u = 5;                   # Sets $Foo::u
$Bar::u = 6;              # Sets $Bar::u
$::u = 0;                 # Sets $main::u
{    
    package Bar;          # Now in package Bar
    {
        our ($u);         # Locally alias $u to $Bar::u
        $u++;             # Increments $Bar::u
    }
    $u++;                 # Error!  The use vars
                          # does not carry across packages.
}
$u++;                     # Increments $Foo::u
                          #   (block containing Bar has
                          #    terminated)
my $u;                    # Lexical variable
{                         #   overshadows use vars
    our ($u);             # $u => $Foo::u (inner block
                          #                overshadows
                          #                outer block)
    $u++;                 # Increments $Foo::u
}
$u++;                     # Increments lexical $u
package;                  # Null-package declaration
$v++;                     # Error!  No package!
                          #   (see use vars above)
$w++;                     # Error!  No declaration!
                          #   (see use strict above)
$Bar::v++                 # This is qualified, so okay
my $w;
$w++;                     # This is now lexical, so okay
package Baz;
our ($w);
$w = 0;
sub w { $w }
w                         # Returns 0
{
    local $w = 1;         # Localizes entry
    w                     # Returns 1; note dynamic scoping
}
w                         # Returns 0; block has terminated
{
    my $w = 1;            # Lexical declaration;
                          #   does not affect $Baz::w
    w                     # Returns 0, for that reason
}

Update: fixed an error, and another error (thanks, ariels).


(thing) by humbabba (5.5 d) (print)   ?   I like it! Sat Oct 12 2002 at 16:59:30

Package
In television news, a package is the full treatment of a story, generally a minute or two in length, and featuring multiple sound bites and the reporter's commentary. Generally, a photographer accompanies the reporter on the story, shooting video of the event or interviews. Afterwards, the reporter edits the video and lays down a voice track to describe what's going on, interspersing sound bites from interview subjects. Generally, when you hear the reporter's voice or see him or her on video (as opposed to the anchor doing all the talking), it's a package you're watching.

Frequently, packages are introduced by the anchor, and may include a live shot of the reporter. ("We now have confirmed reports that the two separate incidents of family pet abuse are indeed linked. Live from the scene, here's KBBL cub reporter Humbabba Jurgowaasix with our top story." "Thanks Phil. Police say these incidents are the work of a desperate mutant on the loose.") After the live intro, the taped package is run, featuring all the details the reporter can cram into a minute twenty and whatever video is most likely to tell the tale, peppered with sound bites from city officials, victim's family, or what have you. Often after the package, they cut back to a live shot of the reporter summing up and bantering with the anchor. ("Just awful down here, Phil. Police are clueless and neighbors are totally freaked out." "Thanks, Humbabba. Keep us posted.")

The package is the staple of TV news, the big treatment given to the big stories. In most markets, reporters are responsible for at least one package a show in addition to various VOs and VO-SOTs.

See also VO and VO-SOT.


(definition) by Webster 1913 (print) I like it! Wed Dec 22 1999 at 1:44:53

Pack"age (?), n.

1.

Act or process of packing.

2.

A bundle made up for transportation; a packet; a bale; a parcel; as, a package of goods.

3.

A charge made for packing goods.

4.

A duty formerly charged in the port of London on goods imported or exported by aliens, or by denizens who were the sons of aliens.

 

© Webster 1913.


printable version
chaos

crotch vo I will REMOVE the fucking toilet seat if you don't shut up VO-SOT
Shaving your nuts without permanent injury and/or accidental castration The four levels of visibility in Java The Package bump uglies
CATIA namespace package manager Java Media Framework
OCR - the next phase collection Don Lapre reporter
ARM3 XML::Twig Lexical $&
clamshell Mustop deprecated If it bleeds, it leads
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
What you are reading:
Here's what I hope to do with the Everything code or with something like it
The stars stood still and naked
Bose-Einstein condensate
Why oh why did the black crayon always die first?
Teach Yourself Scheme
blink reflex
Interpretations of the lyrics to American Pie
Galapagos Hawk
Marijuana Myths
True Love Waits
Abats in Provence
Tesla coil
Human sacrifice and the Aztecs
New Writeups
Scaevola
Risk in the Roman law of sale(idea)
semicolon
overheard at IHOP(event)
choirotey
Violent pickup lines(idea)
Ouzo
Blue Ovaries, Grrrrrrwl(log)
uncljoedoc
explanation(person)
Noung
One no longer loves one's insight when one communicates it(idea)
AspieDad
Pornology(essay)
nailbiter
Nicole duFresne(person)
Simulacron3
stigmergy(idea)
nakusavi
Yesterday I learned how to kiss(idea)
aneurin
UK Local Elections 2008(event)
Phyrkrakr
Kansas City Royals(thing)
niruena
Amalric of Bena(person)
niruena
Third Crusade(event)
Ariloulaleelay
I am a female android(personal)
Everything 2 is brought to you by the letter C and The Everything Development Company