dcsimg
Main » TERM » S »

Sigil Definition & Meaning

A sigil is a symbol used in some programming languages to indicate different program features. BASIC and Perl are two of the most popular languages to use sigils. Typically, the sigil initializes a variable, collection of variables, collection of characters, or string. In BASIC, for example, the sigil $ indicates a variable with a string.

In the Perl programming language, @ designates an array, which is a collection of variables that have similar data types. $ designates scalars or variables that hold a specific value. 

In Elixir, sigils can introduce different elements in programming: ~s initializes a string, while ~S initializes a raw string literal (which does not allow escapes). ~w is used to separate a list of words:

~w (word word word) 










LATEST ARTICLES
Texting & Chat Abbreviations

From A3 to ZZZ we list 1,559 text message and online chat abbreviations to help you translate and understand today's texting lingo. Includes Top... Read More »

Huge List of Computer Certifications

Have you heard about a computer certification program but can't figure out if it's right for you? Use this handy list to help you decide. Read More »

STUDY GUIDES
Computer Architecture Study Guide

Computer architecture provides an introduction to system design basics for most computer science students. Read More »

Network Fundamentals Study Guide

Networking fundamentals teaches the building blocks of modern network design. Learn different types of networks, concepts, architecture and... Read More »

The Five Generations of Computers

Learn about each of the five generations of computers and major technology developments that have led to the computing devices that we use... Read More »