[Fwd: Re: [perl #8806][PATCH] make "perldoc -q slurp" work]
[email protected] (Renée Bäcker) Sat, 07 Jun 2008 19:35:27 +0200
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <[email protected]> |
--------------000100000206050500070005 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit -------- Original Message -------- Subject: Re: [perl #8806][PATCH] make "perldoc -q slurp" work Date: Fri, 6 Jun 2008 15:13:37 +0200 (CEST) From: [email protected] To: [email protected] CC: [email protected] Sorry, forgot the attachment... Am 06.06.2008 um 15:11 Uhr haben Sie geschrieben: > Attached is a small patch for perlfaq5.pod that makes "perldoc -q slurp" > work. > > Cheers, > Renee > > > > > > --- [email protected] Smart-Websolutions André Windolph und Renée Bäcker GbR Maria-Montessori-Str. 13 64584 Biebesheim USt.-ID: DE 228 935 695 Telefon: 01803 - 278 25 51 98 (9 cent/Minute) E-Mail: [email protected] Perl-Magazin: http://foo-magazin.de Perl-Nachrichten: http://perl-nachrichten.de -- Renée Bäcker [email protected] Smart-Websolutions André Windolph und Renée Bäcker GbR Maria-Montessori-Str. 13 64584 Biebesheim USt-ID: DE 228 935 695 Tel: 0177-2416996 XING: http://www.xing.com/profile/Renee_Baecker Foo-Magazin: http://foo-magazin.de --------------000100000206050500070005 Content-Type: text/plain; name="perlfaq5.slurp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="perlfaq5.slurp.patch" --- perlfaq5.pod.old 2008-06-06 14:57:02.711813400 +0200 +++ perlfaq5.pod.added_slurp 2008-06-06 15:00:46.224465600 +0200 @@ -979,7 +979,7 @@ for $fh (FH1, FH2, FH3) { print $fh "whatever\n" } -=head2 How can I read in an entire file all at once? +=head2 How can I read in an entire file all at once? How can I slurp a file? X<slurp> X<file, slurping> You can use the File::Slurp module to do it in one step. --------------000100000206050500070005--