zsh-users
 help / color / mirror / code / Atom feed
* Does zsh have a hereis to variable???
@ 2004-09-24 11:09 zzapper
  2004-09-24 11:23 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: zzapper @ 2004-09-24 11:09 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-24 12:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 11:09 Does zsh have a hereis to variable??? zzapper
2004-09-24 11:23 ` Peter Stephenson
2004-09-24 11:41   ` zzapper
2004-09-24 12:05     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).