perl-code argument type


Description

A block of Perl code enclosed in braces. All XSH2 variables are transparently accessible from the Perl code as well.

For more information about embedded Perl code in XSH2, predefined functions etc., see Interacting with Perl and Shell.

Example 1. 

xsh> $i={ "foo" };
xsh> perl { echo "$i-bar\n"; }# prints foo-bar
xsh> echo { "$i-bar" }# very much the same as above

Sections

Argument Types, Interacting with Perl and Shell