Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Does zsh have a hereis to variable???
- X-seq: zsh-users 8018
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Does zsh have a hereis to variable???
- Date: Fri, 24 Sep 2004 12:41:36 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <vnv7l0ttg8aahjta09m86eufcah69pfvo5@xxxxxxx> <200409241123.i8OBNPKB018363@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Fri, 24 Sep 2004 12:23:24 +0100, wrote:
>zzapper wrote:
>> 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 ???
>
>I think you want
>
>var="$(<file)"
>
>which puts the contents of file into the variable var without any
>substitutions or splitting or joining on the contents.
Peter,
In this this I want the perl to be inline and not in an external file (for portability)
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