D
Daniel Kramer
what are the formatting rules to passing perl commands to the perl
command line? I've tried the following, which works:
echo testme | perl -pe '@test = split /t/, $_ ; $_= $test[2]'
I'm actually trying to shell out of another scripting lang that's not
very good at string parsing to have perl do some work.. the only
problem is this other lang doesn't like the ";" in my perl command
string and fails..I'm basically passthing this cmd though a "system"
like function in the other lang and it sees the ";" as an end of line,
not part of the string to pass. Is there another notation I can use
on a single
line to end commands instead of the ";"?
any suggestions?
thanks
daniel
command line? I've tried the following, which works:
echo testme | perl -pe '@test = split /t/, $_ ; $_= $test[2]'
I'm actually trying to shell out of another scripting lang that's not
very good at string parsing to have perl do some work.. the only
problem is this other lang doesn't like the ";" in my perl command
string and fails..I'm basically passthing this cmd though a "system"
like function in the other lang and it sees the ";" as an end of line,
not part of the string to pass. Is there another notation I can use
on a single
line to end commands instead of the ";"?
any suggestions?
thanks
daniel