 |
|
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-fou
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
in the name of god hello everybody i want to use one of linux app as oog to do an action and then after 10 second do other action how i must do it? indeed how i use this time and how i use linux app in perl? must i install special perl modules? valhamdolelah
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
if i understand what you want to do...
system "oog" == 0 or die $!; sleep(10); system "totem" == 0 or die $!;
whatever the syntax for those linux apps are, please fill in.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
thanks i exactly want the thing that you have wrote.but please let me find what is the below error: #!/scr/bin/perl -w #use strict; use warnings; system "oog" == 0 or die $!; sleep(10); system "totem" == 0 or die $!; =pod Argument "oog" isn't numeric in numeric eq (==) at perl.pl line 4. Can't exec "1": No such file or directory at perl.pl line 4. Argument "totem" isn't numeric in numeric eq (==) at perl.pl line 6. Can't exec "1": No such file or directory at perl.pl line 6.
=cut __END__ valhamdolelah.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
 |
Hi, This is my cgi-bin folder D:\www\xampp\cgi-bin
the shebang is like this #!"D:/www/xampp/perl/bin/perl.exe"
and perl is in the folder like in the above path of shebang
here is my script alias entry in httpd.conf
ScriptAlias /cgi-bin/ "D:/www/xampp/cgi-bin/"
and the directory entry is as follows
<Directory "D:/www/xampp/cgi-bin"> AllowOverride All Options Indexes FollowSymLinks ExecCGI Order allow,deny Allow from all </Directory>
my file is printenv.pl and is saved in cgi-bin folder
but still i couldn't make the file run
i call it like localhost/printenv.pl
i get 404 error.
what shall i do?
Today's Beautiful Moments are Tomorrow's Beautiful Memories
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
 |
Perl has a debugger built in Enable the debugger with perl -d perlscript or modify the perlscript and add -d on the first line X @INC X $ARGV read a manual please for further hints
Thanks Guys/Girls
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
No idea what the answer to the question is, however....
Don't use a regex in an attempt to parse html/xml. Instead use a parser. Such parsers already exist and have an extensive history.
At best regex solutions can only work if all of the following are true 1. The source is machine generated 2. The source is limited to a single source (or perhaps two.) 3. There is no chance that any other source will ever be used.
If the above are not all true then the result will be one of the following 1. Over time one will end up with a full functioning parser (which would have been the case if one started with one in the first place.) 2. Over time one will end up with a hideous unmanagable mess of code that must be replaced - probably with a parser.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
 |
#! /usr/bin/perl -w $_ = "123.567isa decent number12456.3"; $num = /\d+/; print $num;
should only produce a logical value. 1 The $num is using a MATCH operation /\d+/ which should be written as $num = m/\d+/;
Thanks Guys/Girls
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |