background preloader

Wiki

Facebook Twitter

The Perl Programming Language - www.perl.org. Glue language. Characteristics[edit] In principle any language can be used as a scripting language, given libraries or bindings for a specific environment.

Glue language

Formally speaking, "scripting" is a property of the primary implementations and uses of a language, hence the ambiguity about whether a language "is" a scripting language for languages with multiple implementations. However, many languages are not very suited for use as scripting languages and are rarely if ever used as such. Eval. Security risks[edit] session['authenticated'] = False data = get_data() foo = eval(data) An attacker could supply the program with the string "session.update(authenticated=True)" as data, which would update the session dictionary to set an authenticated key to be True.

eval

To remedy this, all data which will be used with eval must be escaped, or it must be run without access to potentially harmful functions. Uses[edit] A call to eval is sometimes used by inexperienced programmers for all sorts of things. Scripting language. Characteristics[edit] In principle any language can be used as a scripting language, given libraries or bindings for a specific environment.

Scripting language

Formally speaking, "scripting" is a property of the primary implementations and uses of a language, hence the ambiguity about whether a language "is" a scripting language for languages with multiple implementations.