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)






Jenna Phipps
Jenna Phipps
Jenna Phipps is a contributor for websites such as Webopedia.com and Enterprise Storage Forum. She writes about information technology security, networking, and data storage. Jenna lives in Nashville, TN.

Top Articles

Huge List Of Texting and Online 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...

How To Create A Desktop Shortcut To A Website

This Webopedia guide will show you how to create a desktop shortcut to a website using Firefox, Chrome or Internet Explorer (IE). Creating a desktop...

The History Of Windows Operating Systems

Microsoft Windows is a family of operating systems. We look at the history of Microsoft's Windows operating systems (Windows OS) from 1985 to present...

Hotmail [Outlook] Email Accounts

  By Vangie Beal Hotmail is one of the first public webmail services that can be accessed from any web browser. Prior to Hotmail and its...

Abacus Definition & Meaning

An abacus, also known as a counting frame, is a mechanical device used...

Legacy Code Definition &...

Legacy code refers to source code that has been inherited from a previous...

Unregulated Power Supply Definition...

An unregulated power supply is a system that transforms input voltage into direct...