Monday, June 9, 2008

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...

Hi all.

Help needed to get one regex to capture a <option> content highlighted below in parenthesis in the following 2 situations...

1) <select name="test"> <option value="a">a</option> <option value="b">b</option> (<option value="c" selected>c</option>) ... <option value="nx"></option> </select>

2) <select name="test2"> (<option value="a">a</option>) <option value="b">b</option> <option value="c">c</option> ... <option value="ny"></option> </select>

nx and ny denote an arbitrary number of option tags.

if "selected" is found within an <option ...></option>- capture the selected <option ... selected...></option> to backref \1

*otherwise* capture the first <option value="a"></option> within the <select>...</select>

using perl 5.8.0

Thanks in advance :)

What would be the best way on an online quiz- using a php/mySQL framwork to make a person - once they ve started the quiz have to finish or get zero s? Zend? Ajax? Ruby? Perl? Just sessions / cookies? (something else?)

(I d like it if they close the browser that it would submit a call as well- and I m thinking that might have to be done with JavaScript)

No comments: