Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / Psh / Strategy / Perl.pm
CommitLineData
86530b38
AT
1package Psh::Strategy::Perl;
2
3=item * C<perl>
4
5If the input line starts with p! all remaining input will be
6sent unchanged to the perl interpreter
7
8=cut
9
10
11require Psh::Strategy;
12
13@Psh::Strategy::Perl::ISA=('Psh::Strategy');
14
15sub consumes {
16 return Psh::Strategy::CONSUME_LINE;
17}
18
19sub runs_before {
20 return qw(built_in brace);
21}
22
23sub applies {
24 return 'perl evaluation' if substr(${$_[1]},0,2) eq 'p!';
25}
26
27sub execute {
28 ${$_[1]}= substr(${$_[1]},2);
29 Psh::Strategy::Eval::execute(@_);
30}
31
321;