Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Does zsh have a hereis to variable???
- X-seq: zsh-users 8016
 
- From: zzapper <david@xxxxxxxxxx>
 
- To: zsh-users@xxxxxxxxxx
 
- Subject: Does zsh have a hereis to variable???
 
- Date: Fri, 24 Sep 2004 12:09:18 +0100
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- Sender: news <news@xxxxxxxxxxxxx>
 
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