Thread [bash] Perl in Bash Skript (3 answers)
Opened by __1__ at 2012-10-10 11:46

GwenDragon
 2012-10-10 12:32
#162586 #162586
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Einfach den Heredoc-Trenner mit ' quoten.

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

var=4711;

perl << 'X'
# neware this is the Perl var
$var = 13;
...
X

# now this the bash var!
echo $var;


Weiteres Example 19-7. Parameter substitution turned off

View full thread [bash] Perl in Bash Skript