Re: slurp in file

2003-02-10 Thread zentara
On Sun, 9 Feb 2003 11:45:56 -0600, [EMAIL PROTECTED] (Ktb) wrote: >Is there any function that places perl code from a file into a program >as if it was just part of the program file itself? > >Something like: > >file >** >Hello World. >** > >program >$file = slurp('file');

Re: slurp in file

2003-02-10 Thread Janek Schleicher
On Sun, 09 Feb 2003 12:54:51 -0500, Wiggins D'Anconia wrote: > ktb wrote: >> Is there any function that places perl code from a file into a program >> as if it was just part of the program file itself? >> > > perldoc -f use > perldoc -f require > perldoc -f eval > Don't forget perldoc -f do >

Re: slurp in file

2003-02-09 Thread R. Joseph Newton
ktb wrote: > >From the book - > $addressbook{"Paddy Malone"} = { > address => "23, Blue Jay Way", > phone => "404-6599" > }; > > And then bring them back into the program to print out. > Thanks, > kent Hi Kent, How about "don't do it"? Look, when your text shows an assignment

Re: slurp in file

2003-02-09 Thread Wiggins d'Anconia
ktb wrote: Is there any function that places perl code from a file into a program as if it was just part of the program file itself? perldoc -f use perldoc -f require perldoc -f eval Will get you started. As for slurping data: perldoc -f open perldoc perlopentut http://danconia.org -- To u