Evening All (or morning for some),
Could anyone have a look at the below and advise where i've going wrong with the syntax as i keep getting the below error while trying to run.
Hi All,
I have been fighting with a syntax error for the last 2 days, still haven't got the solution. Could you please help me, your help will be greatly appreciated.
In my script I am getting a error in a for loop, its similar to the one as is below.
for v_id in v1 v2 v3 v4
do... (8 Replies)
I get this error when I try to run my script
(BTW, this is a simple script I am supposed to write for my class)
$ menuscript
menuscript: syntax error at line 89 : `"' unmatched
$
Here is the code (Any help is greatly appreciated)
(Line numbers included)
1 #!/bin/ksh
2 ... (2 Replies)
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Hi
I not sure what is wrong with my script... when I try to run it I get the follow error: "remove: syntax error at line 77: `end of file' unexpected" Thanks in advance for any help.
ans=y
while
do
while :
do
echo "Please enter a name that you... (3 Replies)
Hey guys keep having problems with the below script syntax error near unpexpected token '0' exit 0 I have two directorys backups and Usr in the usr i have sub dir's wp,ss,pic which i would like to back up (copy those directorys to the backups directory) with user acknowledgement from command line.... (2 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Hi All,
I am new to Unix, I have written the following script in ksh and get a syntax error :wall:. I need some help to figure out the error and reason. The script below uses some variables from an environment file, also it executes a sql file. The sql file is correct and has no problems. I... (1 Reply)
Hi guys i'd like to show you this code of my script, where i couldn't find this error
" #! /bin/bash
#copiabin.sh: copia todos los archivos ejecutables a bin
if
then
mkdir $HOME/bin
fi
# copia de archivos y contador N
N=0
for ARCH in *
do
if # Si el archivo es... (9 Replies)
So, I'm writing my first shell script to try to speed up the process of creating lyric files for mocp and I don't know what the error is, but considering how short the code is, I'm betting it's something super-obvious.
line 7: syntax error near unexpected token `echo'
line 7: ` echo... (4 Replies)
Discussion started by: D351
4 Replies
LEARN ABOUT DEBIAN
text::micromason::plp
MicroMason::PLP(3pm) User Contributed Perl Documentation MicroMason::PLP(3pm)NAME
Text::MicroMason::PLP - Alternate Syntax like PLP Templates
SYNOPSIS
Instead of using this class directly, pass its name to be mixed in:
use Text::MicroMason;
my $mason = Text::MicroMason::Base->new( -PLP );
Use the standard compile and execute methods to parse and evalute templates:
print $mason->compile( text=>$template )->( @%args );
print $mason->execute( text=>$template, @args );
The PLP syntax provides another way to mix Perl into a text template:
<: my $name = $ARGS{name};
if ( $name eq 'Dave' ) { :>
I'm sorry <:= $name :>, I'm afraid I can't do that right now.
<: } else {
my $hour = (localtime)[2];
my $daypart = ( $hour > 11 ) ? 'afternoon' : 'morning';
:>
Good <:= $daypart :>, <:= $name :>!
<: } :>
DESCRIPTION
This subclass replaces MicroMason's normal lexer with one that supports a syntax similar to that provided by the PLP module.
Compatibility with PLP
PLP is a web-oriented system with many fatures, of which only the templating functionality is emulated.
This is not a drop-in replacement for PLP, as the implementation is quite different, but it should be able to process some existing
templates without major changes.
The following features of EmbPerl syntax are supported:
o Basic markup tags
The following syntax features of are not supported:
o Emulation of functions defined in PLP::Functions is incomplete.
o Web server interface with tied
Template Syntax
The following elements are recognized by the PLP lexer:
o <: perl statements :>
Arbitrary Perl code to be executed at this point in the template.
o <:= perl expression :>
A Perl expression to be evaluated and included in the output.
o <( file, arguments )>
Includes an external template file.
Private Methods
lex_token
( $type, $value ) = $mason->lex_token();
Lexer for <: ... :> and <( ... )> tags.
Attempts to parse a token from the template text stored in the global $_ and returns a token type and value. Returns an empty list if
unable to parse further due to an error.
assemble
Performs compile-time file includes for any include tokens found by lex_token.
SEE ALSO
The interface being emulated is described in PLP.
For an overview of this templating framework, see Text::MicroMason.
This is a mixin class intended for use with Text::MicroMason::Base.
For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.
perl v5.10.1 2007-12-21 MicroMason::PLP(3pm)