01-27-07 12:22 PM
Stephane CHAZELAS wrote:
> In PERL for instance,
>
> $a = "foobarbaz";
>
> do you do:
>
> print glob(split($a, $ifs))
>
> instead of
>
> print $a
>
> just because you know $a would not be affected by neither of
> split not glob?
I wasn't answering a PERL question, I was pointing at a solution
using eval to solve a specific problem. I agree that enclosing
parts of the expression in quotation marks is the proper way of
presenting a general solution. However, I never pretended to
deliver such a general solution.
EOD [for my part].
Cheers,
--
Klaus Alexander Seistrup
http://klaus.seistrup.dk/
[ Post a follow-up to this message ]
|