---
name: "Slash"
section: "3pm"
platform: "linux"
package: "slash"
version: "2.2.6-8etch1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/Slash"
---

# Slash(3pm)

Slash - the BEAST

```
        use Slash;  # figure the rest out ;-)
```

Slash is the code that runs Slashdot.\
 **printComments(SID \[, PID, CID\])** Prints all that comment stuff. The story ID to print comments for. The parent ID of the comments to print. The comment ID to print. None. The 'printCommentsMain', 'printCommNoArchive', and 'printCommComments' template blocks.\
 **moderatorCommentLog(SID, CID)** Prints a table detailing the history of moderation of a particular comment. Comment's story ID. Comment's ID. The HTML. The 'modCommentLog' template block.\
 **displayThread(SID, PID, LVL, COMMENTS)** Displays an entire thread.  w00p! The story ID. The parent ID. What level of the thread we're at. Arrayref of all our comments. The thread. The 'displayThread' template block.\
 **dispComment(COMMENT)** Displays a particular comment. Hashref of comment data. If the 'no\_moderation' key of the COMMENT hashref exists, the moderation elements of the comment will not be displayed. The comment to display. The 'dispComment' template block.\
 **dispStory(STORY, AUTHOR, TOPIC, FULL)** Display a story. Hashref of data about the story. Hashref of data about the story's author. Hashref of data about the story's topic. Boolean for show full story, or just the introtext portion. Story to display. The 'dispStory' template block.\
 **displayStory(SID, FULL)** Display a story by SID (frontend to `"dispStory"`). Story ID to display. Boolean for show full story, or just the introtext portion. A list of story to display, hashref of story data, hashref of author data, and hashref of topic data.\
 **getOlderStories(STORIES, SECTION)** Get older stories for older stories box. Array ref of the "essentials" of the stories to display, gotten from getStoriesEssentials. Hashref of section data. The older stories. The 'getOlderStories' template block.\
 **getData(VALUE \[, PARAMETERS, PAGE\])** Returns snippets of data associated with a given page. The name of the data-snippet to process and retrieve. Data stored in a hashref which is to be passed to the retrieved snippet. The name of the page to which VALUE is associated. Returns data snippet with all necessary data interpolated. Gets little snippets of data, determined by the value parameter, from a data template. A data template is a colletion of data snippets in one template, which are grouped together for efficiency. Each script can have it's own data template (specified by the PAGE parameter). If PAGE is unspecified, snippets will be retrieved from the last page visited by the user as determined by Slash::Apache::User. ass daffodil shiny my bite pimpmobile up yours chumpette chump
