Tuesday, June 10, 2008

I need to insert ifdef/endif statements before and after printf statements in a lot of .cpp files. Is this something that can be done with awk- sed- or perl?

Hi- I downloaded and installed ActivePerl for WinXP. When I double click the .pl script I get a command prompt and then it immediately disappears.

When I try to use "perl c:\script.pl" in the command prompt I get this error:

Can t locate Tk.pm in @INC <@INC contains: C:/Perl/site/lib C:/Perl/lib .) at c:\perl\bin\script.pl line 3.
BEGIN failed--compilation aborted at c:\perl\bin\script.pl line 3.

code:
if(opendir(DIR-$inputdir)) { # Proess file with NGC
foreach my $filename1 (readdir DIR) {
if ($filename1 =~ /ngc.*\.xml$/i ) {
if (open(NGC_Input-$filename1)) {
$NGC_Update=$filename1;
close (NGC_Input);
}
}
}
}

I have this program with the help of Yahoo users were i store filenam1 to a variable NGC_Update. If i ran it in dos the stored value in NGC_Update is retained until the end of the program however if i ran it in UNIX the stored value is gone once the loop above is finished. Is there something wrong with the way i programmed it? please help?

well i got Windows Vista with a full web server and i am planing a local network for the neighborhood my next step is i wish to define domains instead of ip for http any help

i got
Apache 2.2
PHP5
MYSQL
PERL
no i need a local domain not an internet domain please don t give far answers

I want to major in software engineering. I am still in Year 9 and have been learning programming for 2 yearsand im very interested in it. I know Delphi- Perl and PHP. What would u suggest for me to learn now?

What subjects would i need to choose next year and which ones do i have to be good at- apart from maths?

How difficult is it to get into MIT?

I have activeperl and I saved my script on Text edit as a .pl.rtf extension because it does not allow me to save it as just .pl and I try pasting the script into Terminal- but it does not run- please someone tell me how to run perl scripts on here
My Microsoft Word Trial expired and dont know any other text editor to use...

No comments: