2,059 Topics
Hi, I have an html file and I have to extract information from its table. I am new to perl but I would give my approach below so I could get some help.. In the html file the table is like for example a 1 b 2 c 3 d …
Hi there. All mail sent through the SMTP server, i need to modify the message being sent through. I thought of making either a C,bash,perl script to take in the message, modify it and return it to SMTP, or stop the SMTP process, and re-call it from the script. Purpose …
I have a certain VBA file in which I want to change 2 things automatically (this file is automatically generated and I don't want to change it manually over and over again) Suppose the name of this file is BAS_IN.bas and the contents are: Function AsianOption(Optional SpotVector As Variant, _ …
Dear Pals, I am into programming for about 6 years. Started with C & Perl. Now in .Net & XML for past 3 years. I mainly work with applications related to image and text processing. Not much with web applications and database. Occasionally I get bogged down by some complex …
Ive been working with perl for a while now and was wondering how and if I could get started in making my perl code do real life things like flip a switch. Any help is appreciated.
Hi All, I'm new here so apologies if there's something not quite done right in my first post on here. I'm fairly new to Perl but this is the first bit I've tried to write at home on my own. I want to have a .pl file that runs in …
Hi, I've developed a little ClearCase perl wrapper running under Windows shell. In some cases the wrapper just passes the clearcase commands and parameters to the "normal" IBM cleartool and exit. I use exec to run the clearcase commands in these cases and it works as expected, but after the …
Can any body tell, how to write perl script using SOAP-Lite for "Web services". how we can get information from web services using this script.
I have a detail view that is displaying information from a table called demos. I am currently displaying a hyperlink so that someone can click the link and go a page (intense, I know!) I would like to make the hyperlink go to different pages based on the value of …
I have a problem loading pictures or images while loading a cgi perl script file but all the other html tags are working fine plz its urgent
Hi all, I'm new at programming in Perl script, and I really need help with this: I want to make a Perl script which returns current version of some software installed on the system (for example current version of Macromedia FlashPlayer). The system on which I'm writing the script (and …
Hi, Well this question has arisen on viewing some of the solved queries. as how to create a link which points to some other website or web page..
Hi, Full disclosure - I just cut and paste my way through scripting - I don't really know what I'm doing. Some time ago I got help with a little CGI perl script that included a link as a line of code with a variable in the form [ICODE]$page = …
So I'm having a bit of a problem with a CGI script. It runs fine, except for the little problem that param(x) doesn't work at all. It will either crash the program or return an undefined value. [code=perl] #!/usr/bin/perl use warnings; use CGI qw(:standard ); $temp=uc(param('class')); $class=chomp ($temp); $temp=uc(param('type')); $type=chomp …
Hi all, I am new to this perl script. I want to open notepad.exe in perl script in the foreground., i.e if I give the command as system ("c:\\windows\\notepad.exe") , notepad should appear in the foreground. (should not run as a background process). I am using Apache server on windows. …
Hi, The below script works fine for me but with normal login, Actually i need to go with "enable 5" and with password "xxxx" to get the user details. So please any one help is here highly appreciated. Here is my prompt for enable, Pleaes have look on it, ERX02>enable …
I am a newbie in perl and I need to produce a script in perl to work and achieve the following: 1) Look into the file /etc/defaultrouter , and store the value in it 2) If the value is a number, go to LIST and print out the second column …
hi, thanku for your help. I need some more help with the perl scripting. i have to write a script which compares two files. now thw files have the data like File1:- .title 'title:VDDL_switched.meas0' max_rush_current = -5.4316e-02 at = 4.9415e-09 powerup_time_u_switch_ring/u2_hs65_ls_sw3l60 = 6.3951e-09 targ = 6.9051e-09 trig = 5.1000e-10 temper …
Hi all, I find this self introduction step a very nice and surprising idea for a technology site...it shows the soft(ware?) side of geeks :). About me: I have 3+ years in C++ programming (network, VoIP stuff), some 2 years in C (drivers and embedded programing) with some Perl on …
so... whatchyallthink? i notice that this forum gets a tiny burst of activity about once a week. before posting this thread, the last couple posts here were made 9 days ago. then the next few were 17 days ago. and this pattern seems to be the same with other multi-language …
hello everyone, can anyone help in writing a perl script which automatically replaces the commands in a file(command file), with the new values. i have written a code but its not working properly. if anyone could help me plz. i am new to this scripting language. thanks in advance. Thanks …
Hey everyone, I'm trying to make a perl script that logs me into my account, and fills this form for me for my job, but i cant get it past a drop down menu, wat a person would manually do is put the mouse over this button, and list would …
Hello there, My intentions are to enter the employee id in the search page, and have the results displayed below the area to enter the search criteria with the select box and update button( i only want to update 1 field) here are the codes..... My problem is whenever i …
Hi all , I have loop and I would like to calculate an expression only when the index is even for($j=0; $j<=100; $j++){ if ( ){ do the expression } } i.e how do I tell perl to do the if statement when $j is an even number? Thanks
HI guys. Jeezz, perl forum is kind of abandoned ;/ Anyway, maybe some one will have an idea. I want to write a selfkilling perl prog :D Ok, i got a simple prog which shows up a simple tk window with some text in it, to go to the next …
Cracker tries to scan ports to find out which of them are open. Because the administrator of computer can enter the hacker's Internet protocol (IP) address into the suspect list, that is why cracker's find , it is wise to conduct scanning from computer other than his own. To this …
Hi, Am new to scripting. :) Am trying to figure out whether can i use bash scripting to parse an xml file. Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull of information. …
Hi everyone. I got a total newbe question and i am new to c programming. I want to write a program that will executing commands , written in separate text file. Lets say, in perl i got something like that: [CODE]open (F,"<file.txt"); $x = <F>; if ($x == "2"){ system …
#!/usr/bin/perl ########################################################################################## # # # AJAX Cross Domain - ACD # # ---------------------------------------------------------------------------------------# # Full documentation see [url]http://www.ajax-cross-domain.com/[/url] # # ---------------------------------------------------------------------------------------# # Copyright (c) 2007 Bart Van der Donck - [url]http://www.dotinternet.be/[/url] # # ---------------------------------------------------------------------------------------# # For installation procedure, see [url]http://www.ajax-cross-domain.com/#Installation[/url] # # ---------------------------------------------------------------------------------------# # Permission to use, copy, modify, and …
Hi there, This is a part of a project that i am doing.... the thing is that i want to link MS Excel with internet explorer in a manner such that whenever any page on the explorer opens it highlights the words that are present in the excel sheet.. I …
Hi, I'm not a professional computer scientist but have to write a report on a software package. I'm looking for standard terminology for the process/construction of one program generating another program as output which is then run at later time. Obviously, this can be iterated with programs writing programs writing …
I suppose that this is the wrong place to voice critique of php but does the lack of good php books not make php a bit of a nightmare. i have been on amazon and all the books have a review or two which says something about typos or misleading …
How do you add to a variable that is inside a foreach loop? Everything I try hasnt worked.
I'm looking for a bit of advice. We're getting to the point in our game development where I need to start thinking how we're going to integrate scripting into the game engine. I was looking at Lua, but am also interested in what Perl or Python might be able to …
Hey guys. Ive got a problem with a simple hello world script. Im a perl beginner so bear with me. Im running mandriva linux if it matters. Also this file is saved under /home/rysin/documents. Code [CODE]#!/usr/bin/perl print "Hello World\n";[/CODE] When I go into the command line and use the perl …
I have [CODE]#!/usr/bin/perl @line = <STDIN>; print @line;[/CODE] and when I hit control D, control c, or even control z it just ends the program. Im on a linux machine. Any help?
Hi, In my case i am updating same SDBM file at the same time by executing multiple programs. In my programs i am using tie function. Here is the code. $db = tie(%FILE_NAMES, 'SDBM_File', $tName, O_RDWR|O_CREAT, 0666) Here i need to put one lock to avoid dead lock situation. Thanks, …
I got this link e-mailed to me today. I can't tell if it is serious or not (I think it is), but it is pretty funny either way. It's a weekly feature called "Sexy Programmer Thursdays" and it's this person (girl? guy? not sure) who, well, highlights a different programmer …
Here's one I haven't been able to find an answer to. I have 4 arrays: @array1, @array2, @array3, @array4. I ran code to compare the values of 2 arrays to see number of values in common: [CODE]use strict; use warnings; my (%union, %intersect); foreach my $e (@array1, @array2) { $union{$e}++ …
This code counts number of characters in a single line how can I make it count(give total X Y Z) it in multiple lines seperated by ">" [CODE]while(<IN>) { chomp; my @line = split(//, $_); if($line[0] eq ">"){print @line;} elsif (($line[0] eq "X"||"Y"||"Z")||($line[0] ne ">")) { my %cnter; foreach my …
Hello, I have a project that I can build with a script. I'd like to add version number + release number to my builds. I'm looking for a way to do it automatically. As a result I'd like to get something like that: [inlinecode]\deployment\v1.2.3\some.exe[/inlinecode] When I run exe I'd like …
Hello i am new in perl scripting.I have to write a script to check for .c file and then go in to the ,c file and find all function and insert line1 after `{` and line2 before `}` or before return( if return is present). Can any1 plz help me …
Hi im new to perl..I normally code java...but the boss got me trying to fix this issue... Anyway,we get a news feed that comes in as an xml file...this feed now requires "basic HTTP authentication"...the old feed didint require this , so there was nothing implemented in the code, ...anyway …
Hi All I am sudhakaran from Chennai. I am PERL programmer for the past 2.5 years. I hope i can share as well as can get lot of new things with other friends in Daniweb. Expecting good friends to grow together.
I am very sure the code below can be simplified. The exercise was to take a word list, rearrange each word's letter to be in alpha order (e.g. barter = aberrt). The rearranged letter would be the keys and the word be be assigned to that key. Similar keys could …
Hi guys, i need help extracting e-mail id from the text file can anybody please tell me how can i extract e-mail id and store it in a vaiable using perl regex. (e-mail id is not always bound to end with .com) here is my text file: ****************************************** IQXpert 27(ID) …
Happy greetings to all .. longtime pseudo-techie, mid 40s.. dad of 6, soon to be 7. Mainly a perl and php guy, but have dabbled in everything from teaching assembly to being the ops director of an interactive agency. Now an independent (love the commute to my home office) doing …
have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that the data contained in the original file contains a lot more columns …
Can someone please tell me what's wrong with this? [code]my $time = "12/Jan/2008:13:38"; my ($day, $month, $year, $hour, $minute) = $time =~ /(\d+)\/(\w)\/(\d+)\:(\d+)\:(\d+)/;[/code] I've tried a hundred different things including not escaping the colons, putting parenthesis around ($time...[regex]), splitting up the assignments to $day = $1, $month = $2, etc... …
Hello all I have been wrting a blast script which results in the following error: [code] the small rnas:CAGCGATGGGGATCAAGCTC the sequnce thats being worked is CAGCGATGGGGATCAAGCTC [blastall] WARNING: Unable to open TCV-jagger.fna.nin [blastall] WARNING: : Unable to open TCV-jagger.fna.nin ------------- EXCEPTION: Bio::Root::Exception ------------- MSG: blastall call crashed: 256 /usr/bin/blastall -p …
The End.