Hello boB, On Fri, Nov 16, 2012 at 4:58 AM, boB Stepp <robertvst...@gmail.com> wrote:
> I am using Win7Pro-64bit. > > say "Another Hello World!"; > > if run from Padre v. 0.94 yields: > > String found where operator expected at HelloWorld.plx line 4, near "say > "Anothe > r Hello World!"" > (Do you need to predeclare say?) > syntax error at HelloWorld.plx line 4, near "say "Another Hello World!"" > Execution of HelloWorld.plx aborted due to compilation errors. > Press any key to continue . . . > > However, if I instead use: > > #use 5.010; > > > say "Another Hello World!"; > > It runs as expected when run from within Padre. > > If I run the first version from the Windows command line (which is > using Strawberry Perl 5.16 instead of Padre's 5.14), using > > c:\perl helloworld.plx > > I get no error messages and all works well. Why does Padre require the > insertion of the use pragma? > Please also check this http://perldoc.perl.org/functions/say.html > > Thanks! > boB Stepp > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- Tim