Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 rifling through the Monastery: (3)
As of 2023-06-05 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (26 votes). Check out past polls.

    Notices?