Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,605 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 915 people online right now. Registration is fast and FREE... Join Now!




New To Perl Have Bareword error

 
Reply to this topicStart new topic

New To Perl Have Bareword error

inf4my
post 8 Jul, 2008 - 08:31 AM
Post #1


New D.I.C Head

*
Joined: 19 Nov, 2007
Posts: 23


My Contributions


Here is the error I get
CODE
Bareword "memory" not allowed while "strict subs" in use at (eval 3) line 62.
BEGIN failed--compilation aborted at FormMailImex.cgi line 3366.


Here are the two lines it references
CODE
#62   $style             = '/css/nms.css';


CODE
#3362  END_INLINED_CGI_NMS_Script_FormMail
#3363    $INC{'CGI/NMS/Script/FormMail.pm'} = 1;
#3364  }
#3365
#3366   }
User is offlineProfile CardPM

Go to the top of the page

girasquid
post 8 Jul, 2008 - 09:03 AM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,256



Thanked 14 times

Dream Kudos: 650
My Contributions


Is FormMailImex.cgi your code, or someone else's?

Usually when an error occurs, it's actually on the line just before the one that the error reporter talks to you about - can you show me maybe lines 57-62?
User is offlineProfile CardPM

Go to the top of the page

inf4my
post 8 Jul, 2008 - 10:06 AM
Post #3


New D.I.C Head

*
Joined: 19 Nov, 2007
Posts: 23


My Contributions


the script is a modified version of a old perl mail script called FormMail.cgi

here are lines 57-63
CODE
%recipient_alias   = ();
  @valid_ENV         = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
  $locale            = '';
  $charset           = 'iso-8859-1';
  $date_fmt          = '%A, %B %d, %Y at %H:%M:%S';
  $style             = '/css/nms.css';
  $no_content        = 0;
User is offlineProfile CardPM

Go to the top of the page

inf4my
post 8 Jul, 2008 - 10:37 AM
Post #4


New D.I.C Head

*
Joined: 19 Nov, 2007
Posts: 23


My Contributions


it turned out while editing it for some reason some lines overlapped and they went onto the next line so part of a comment would be on a line without the hash in front of it.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 02:24AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month