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
Jenna Phipps is a writer for Webopedia.com, Enterprise Storage Forum, and CIO Insight. She covers data storage systems and data management, information technology security, and enterprise software solutions.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Virtual Private Network (VPN)

A virtual private network (VPN) encrypts a device's Internet access through a secure server. It is most frequently used for remote employees accessing a...

Gantt Chart

A Gantt chart is a type of bar chart that illustrates a project schedule and shows the dependency between tasks and the current schedule...

Input Sanitization

Input sanitization is a cybersecurity measure of checking, cleaning, and filtering data inputs from users, APIs, and web services of any unwanted characters and...

IT Asset Management Software

IT asset management software (ITAM software) is an application for organizing, recording, and tracking all of an organization s hardware and software assets throughout...

ScalaHosting

ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...