[wplug] Slightly OT- Perl issue

Scott Husek shusek-wplug at husek.com
Thu Mar 10 20:58:48 EST 2005


If you don't like altering $/, try this:

$scalar = join('', <FILE>);

Just my 2 cents.

-Scott

> Dammit!  Yeah I knew I needed that line, and apparently missed it. :)  I
> reassigned via local, is the only difference.  Now that I put that back
> in, its working.  Thanks guys.
>
> -b
>
>>
>
>> On Thu, 10 Mar 2005 11:04:00 -0500, "Eric Cooper" <ecc at cmu.edu> said:
>>
>>> Tell Perl to ignore line separators:
>>>
>>> undef $/; $scalar = <FILE>;
>>
>> Very nice.  TMTOWTDI! -- ~ You are in a maze of twisty passages, all
>> alike.
>>
>>
>> Christopher DeMarco cdemarco at fastmail.fm +6013 389 5658
>>
>> _______________________________________________ wplug mailing list
>> wplug at wplug.org http://www.wplug.org/mailman/listinfo/wplug
>>
>>
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug





More information about the wplug mailing list