what is this variable?
what is this variable:
$/
terabyte
Junior Poster in Training
68 posts since Oct 2010
Reputation Points: 10
Solved Threads: 4
d5e5
Practically a Posting Shark
810 posts since Sep 2009
Reputation Points: 159
Solved Threads: 159
Mike, your example works fine but I think the loop obscures your point that slurping means reading a file into a variable in one go... so no need for a loop.
#while(<DATA>){
# $fulltext=$_;
#} #The above loop works but to slurp all you need is
$fulltext=<DATA>;
d5e5
Practically a Posting Shark
810 posts since Sep 2009
Reputation Points: 159
Solved Threads: 159