Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Does zsh have a hereis to variable???



Hi
I would like to load  a longish Perl Script into a variable without having to worry about what
quotes might appear in the script, I know zsh has hereis to a file, but to a variable ???

example of what I want to do (but with a longer perl script)

#!/bin/zsh
perlscript='for $i (1..4) { $j="goat$i"; print " billy$j"; }'
result=$(perl -e "$perlscript")
echo $result


zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips



Messages sorted by: Reverse Date, Date, Thread, Author