homepage Welcome to WebmasterWorld Guest from 54.198.25.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Using Strict
rugrat



 
Msg#: 4456591 posted 8:29 pm on May 22, 2012 (gmt 0)

Got a question--no doubt an easy one. While using strict is a good thing for making sure all is well in a script(something I've learned how to do since coming to this site) I was wondering what about if the script was written using strict and then removed for the purpose of requiring other pages such a s .txt files. As long as the script was written in strict it should be okay, right?

 

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4456591 posted 9:29 pm on May 22, 2012 (gmt 0)

not that i've tried what you are proposing but:
why are you having a problem including any arbitrary file name?
is the require parameter (the filename) a bareword or is it quoted?

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4456591 posted 3:44 pm on May 23, 2012 (gmt 0)

Yes, you should be able to include/require files using strict.

rugrat



 
Msg#: 4456591 posted 10:42 pm on May 24, 2012 (gmt 0)

Actually I apologize for asking a (dumb)question I already knew the answer to as I tried it before and think I asked about it once. I was wanting to declare variable values on a speparate file. Sorry and thanx at the same time.

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4456591 posted 12:12 pm on Jul 9, 2012 (gmt 0)

I have been using Perl since about 96. I have never - nor will ever - use Strict. There is rarely a reason to ever do so and always better to code around it if you feel the need to use it. However, I don't don't do OOP programming for myself - as an ex-assem lang programmer, I believe in mainline subroutine coding and not to many external killing modules.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved