iNerd
01-18-2004, 11:09 PM
How would I get this to work? In tcsh, I need to make an alias for a perl -e command, which uses a variable, and a string which contains quotes and a dollar sign and the variable and escape characters.
I dont know exactly how to contruct an example for this one.
I'm trying to get something comparable to this Perl:
$xmp="example. a single quote and backslash must be here: '\\"; print "\033[7m\$xmp==\"$xmp\";#here's a backslash, \\, and a closing brace, }.\033[0m\n"
into this tcsh script:
alias example "perl -e '#see Perl code above'"
I alway's get errors involving undefined variable $xmp, or unmatched " or '. Some help, please?
Thx, iNerd
I dont know exactly how to contruct an example for this one.
I'm trying to get something comparable to this Perl:
$xmp="example. a single quote and backslash must be here: '\\"; print "\033[7m\$xmp==\"$xmp\";#here's a backslash, \\, and a closing brace, }.\033[0m\n"
into this tcsh script:
alias example "perl -e '#see Perl code above'"
I alway's get errors involving undefined variable $xmp, or unmatched " or '. Some help, please?
Thx, iNerd