Sigil

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 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

The Complete List of 1500+ Common Text Abbreviations & Acronyms

Text Abbreviations reviewed by Web Webster   From A3 to ZZZ we list 1,559 SMS, online chat, and text abbreviations to help you translate and understand...

Windows Operating System History & Versions

The Windows operating system (Windows OS) refers to a family of operating systems developed by Microsoft Corporation. We look at the history of Windows...

How to Create a Website Shortcut on Your Desktop

Website Shortcut on Your Desktop reviewed by Web Webster   This Webopedia guide will show you how to create a website shortcut on your desktop using...

Generations of Computers (1st to 5th)

Reviewed by Web Webster Learn about each of the 5 generations of computers and major technology developments that have led to the computing devices that...

Telecommunication

Telecommunication refers to telephony and cellular network technology. However, the broader definition includes...

Spoofing

What is spoofing? As it pertains to cybersecurity, spoofing is when a person disguises...

How to Indent in...

Microsoft Word is a graphical word...