Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

Re^4: Another prediction of Perl's demise

by Your Mother (Archbishop)
on Nov 26, 2004 at 20:11 UTC ( [id://410665]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^3: Another prediction of Perl's demise
in thread Another prediction of Perl's demise

use IO::All; $content = io('file.txt')->slurp; # or io('file.txt') > $content; # or use File::Slurp; $content = read_file( 'filename' ); # or any number of include methods in Mason/Template/Embperl...

The things that IO::All makes absurdly easy include (and aren't limited to):

  • Tied files.
  • Appending to file.
  • Appending to our original string with a new file: $content << io('new.txt');
  • Inserting the contents of a web page, even a secure one, into a string.
  • Running a flat DB.
  • Reading files backwards.
  • Doing socket communication; clients and servers.
  • File stats and File::Spec support.
  • and so on; most can be done in one line.

Replies are listed 'Best First'.
Re^5: Another prediction of Perl's demise
by BrowserUk (Patriarch) on Nov 26, 2004 at 20:45 UTC

    Sad, but I just gotta...

    Who is Your Mother? :)


    Examine what is said, not who speaks.
    "But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
    "Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

      No one of consequence.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://410665]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.