[EMAIL PROTECTED] (Chris Fedde) writes:
> WRT the backtick-cat technique. It suffers from all the interesting
> portability issues of the much noted Unix bias. I'm against the
> militant "Unix or Die" attitude that the FAQ has had. But this one
> is not as militant as some. I think that if it is retained it should
> be last and pointed out as OS specific. Still as FAQ maintainer your
> opinion is the one that matters.
How about offering a backtick-type example for Windoze users? I
believe "type" still works on modern Windows versions, in a manner
similar to "cat"?
On very rare occasion, you may have an algorithm that demands that
the entire file be in memory at once as one scalar. The simplest solution
to that is
$var = `cat $file`;
+
+(Windows users, substitute "type" instead of "cat" in this example.)
--Bill.
--
William R Ward [EMAIL PROTECTED] http://www.wards.net/~bill/
-----------------------------------------------------------------------------
If you're not part of the solution, you're part of the precipitate.