ktb, Wiggins, Another perspective: text.txt contains: return 'My Full Name with middle initial';
#!/usr/bin/perl -w use strict; my $name = do "./text.txt"; print "$name\n"; prints: My Full Name with middle initial > > The problem I'm having is my print statement just prints a new line > > without printing any text. It was my understanding that the "do" > > function would pull the scalars from "text" into my prog as if it was > > part of the program. > It may be doing just that, but with the line: > my $name; > After the 'do' you are resetting the variable. You should be using 'our' > instead of 'my'. > perldoc -f our > perldoc -f my Note also that I use the -w. (Not right or wrong, just warning you of different behavior) HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]