Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: Return the contents of a file

by btrott (Parson)
on Feb 04, 2000 at 23:31 UTC ( #2878=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       while (<FS>) { $OP .= $_ }
    
  2. or download this
        sub readfile {
            my $OP;
    ...
            close FS or die "Can't close $_[0]: $!";
            return $OP;
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://2878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-05-25 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?