1,633 Topics

Member Avatar for
Member Avatar for Cupidvogel

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML …

Member Avatar for Cupidvogel
0
208
Member Avatar for gedas

hey, i have no experience with pearl programming what so ever, but at work i have to use the code below to change csv to xls files. could someone tell me in the code below which line specifies the .csv file name that i need to change in order to …

Member Avatar for JeoSaurus
0
270
Member Avatar for jrp370

every time i try to run my program (driver) is receive the following error message, arithmetic.pm did not return a true value at ./driver line 9, begin failed--compilation aborted at ./driver line 9 can anyone help me sort this out? thank you very much [CODE]#!/usr/bin/perl -w #Driver #program by James …

Member Avatar for jrp370
0
156
Member Avatar for metronomu

Hello , the problem is this, i need to install the XML-LibXML library and it seems to be easier to put salt in your eyes than to realize this. I get the error below which basically states that i cannot install the library because i don't have libxml2 installed. Of …

0
107
Member Avatar for jaango123

Hi All, I am trying to find matches wherever there is an ip address in the xsl and xml files under a parent directory(It contains subdirectories as well). In MS Dos below command doesnt work. Could anyone please give me the perl snippet to find the ip address matches? findstr …

Member Avatar for wickedxter
0
137
Member Avatar for fredfletcher

Hello, I have a question. I found a script on the Internet that lets people change from one language to another, in this case from English to French, but files must all reside in the same folder. The script works, however, my files are in seperate folders in the root, …

Member Avatar for wickedxter
0
130
Member Avatar for Alek_log

Hi, If it's not too much trouble I would appreciate some help with this: How I can read one by ane all xml files in one directory and to have options to get same elemests from xml files :) For example: [CODE] chdir("/ras-events/Emanuila/edrs/") or die "Couldn't open directory"; opendir (DIR, …

Member Avatar for wickedxter
0
230
Member Avatar for boshu

Dear all, I need to copy a set of files every once in a while from my build env to a shared drive. The set of files are same, names may vary but they come with same extension. So far I am doing it manually. I wish it could be …

Member Avatar for d5e5
0
374
Member Avatar for coding101

Im learning a new language , perl, and am wondering what are some useful perl systems admin scripts? What are some scripts sys admins write to automate tasks etc.. any ideas, id like to learn the usefulness other than perls ability for "quick and dirty" programs. thanks!

0
49
Member Avatar for biojet

Hi, I made the perl script and I print out with Txt file. For EX : [CODE]Open (OUTPUT,">data.txt"));[/CODE] out put [CODE]data.txt[/CODE] But I hope at the day that I run the script, the day will be labeled with the name file. Like the name below: [CODE]20110919data.txt[/CODE] Could you please show …

Member Avatar for biojet
0
131
Member Avatar for lina20

i have a script for greenstone applciation mkcol.pl here it is: [CODE]#!/usr/bin/perl -w ########################################################################### # # mkcol.pl -- # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999 New Zealand …

0
77
Member Avatar for biojet

Hi, I have the data file. txt (3.96 MB) and I want to make each 50 Character on the one line. For EX: In put data : [CODE]GTGAGCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGATCTC........ [/CODE] [CODE] out put with 50 character on one line: GTGAGCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCC TGAGCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCG GAGCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGA AGCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGAT GCCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGATC CCAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGATCT CAGAACTCATCTTCTTTGCTCGAAACCTGGCGCCAAGTTGTTGCCGATCTC [/CODE] Below is my script …

Member Avatar for d5e5
0
201
Member Avatar for perly

Hi, I have a code (below) that reads from a file and output the file content a fter inserting a tab and & in-between different elements into another file. [CODE]my $REPORT_FILE = 'report.txt'; $allRfile = 'AllidentifiedMetabs1.txt'; open(ALL,"<AllidentifiedMetabs1.txt") || die "can't open $allRfile $!"; my $line = <ALL>; ($ID,$name,$M2, $M3, $M4, …

Member Avatar for perly
0
114
Member Avatar for jam2010

Hi Everyone, Can anyone pls help me out......with my requirement, i am struggling since 3 days. Please find the requirement below my file contains below data Code: R1|Array/Network Resistor - VIP|V_RES_CLASS|V_MOUNT_FEATURE|SURFACE MOUNT|AND|8533.10.00.20|8533.10.00.20| R1|Array/Network Resistor - VIP|V_RES_NW_CLASS|V_TECHNOLOGY|CARBON*||8533.10.00.20|8533.10.00.20| R4|Array/Network Resistor - VIP|V_RES_CLASS|V_MOUNT_FEATURE|THROUGH HOLE MOUNT|AND|8533.10.00.57|8533.10.00.57| R4|Array/Network Resistor - VIP|V_RES_NW_CLASS|V_TECHNOLOGY|CARBON*||8533.10.00.57|8533.10.00.57| R7|Array/Network Resistor - VIP|V_RES_CLASS|V_MOUNT_FEATURE|SURFACE …

Member Avatar for JeoSaurus
0
86
Member Avatar for fredfletcher

Hello, I'd really like some help on this. How can I add the server's root folder of "english" to this: [B]~ s/_e\.shtml/_f\.shtml/ [/B] This searches all occurences of [B]_e.shtml[/B] and replaces them with [B]_f.shtml[/B] (it being in the same folder). Yet, in between that, I would like to add the …

Member Avatar for fredfletcher
0
120
Member Avatar for Rogue45

I wrote c program that outputs all permutations of a word to a txt file. ate aet tae tea eat eta I also have a txt file of all the words in the dictionary. I would like to take the first entry in permutations.txt and search dictionary.txt to see if …

Member Avatar for d5e5
0
247
Member Avatar for haojam

Sir / Madam, I would like to map and extract common numbers between 5 column (i.e.Start) and 6th column (End) for refFlat table with 2nd column (Start) and 3rd column (End) for mirna table. Could you please modify the script attach here. I would be glad for your support. With …

Member Avatar for haojam
0
259
Member Avatar for xellos

[CODE]use strict; use warnings; use IO::Socket; my $sock = new IO::Socket::INET( PeerAddr=> 'localhost', PeerPort=> '7070', Proto => 'tcp'); die "Could not create socket: $!\n" unless $sock; my $run = "yes"; while($run eq "yes") { my $text = <STDIN>; print $sock "$text"; print "Send more strings? yes/no"; $run = <STDIN>; } …

Member Avatar for d5e5
0
120
Member Avatar for xellos

ok i have a perl script [CODE]use strict; use warnings; open(my $in, ">>", "log.txt") or die "cant open log.txt $!" ; my @files = <*>; foreach my $file (@files){ print $in $file . "\n"; } close $in or die "$in $!";[/CODE] it gets the filenames that are in the same …

Member Avatar for d5e5
0
146
Member Avatar for maninaction
Member Avatar for Mouche
0
60
Member Avatar for vaibhav1983

Hi All, Has anybody worked with extracting an image from RSS/Atom Feeds using Perl There is a modulke XML::RSS which extracts images from RSS feeds. But in Atom feeds the images are embedded in the description using the img tag. Need some help on extracting the image from the description …

0
51
Member Avatar for bio-grad

Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the …

Member Avatar for bio-grad
0
593
Member Avatar for vaibhav1983

Hi ALL, I am writing a script to retreive entries from a DB. And then I loop through all the entries. Once I am done looping through all the result sets, I have to re-loop over them again. This is done in an infinite loop (Please don't ask why to …

Member Avatar for d5e5
0
238
Member Avatar for biojet

Hi everyone, Coul you please help me to find the position between Star_poso and end_posi. I have two data Data 1: Num Posi 1 2 2 5 3 9 4 16 5 19 .. .. Data 2: Num Star_posi End_posi 1 1 10 2 15 18 3 26 30 .. …

Member Avatar for d5e5
0
369
Member Avatar for techie929

Hi, I am trying to open a file and correct the spelling of friend. But when I open the file test.txt again it is all blank. [CODE] my $opened = open(MYFH , ">test.txt"); my $line; my $lnum = 1; while( $line = <MYFH> ){ print "$lnum: $line\n"; $line =~ s/freind/friend/g; …

Member Avatar for anuragmathur1
0
100
Member Avatar for watery87

hello, i want to parse a file that has the following log entries [code] 1183245991.961 0.079 137.157.56.34 200 1277 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml "text/xml" 1183327698.250 2.568 137.157.56.212 200 57891 GET http://csc3-2004-crl.verisign.com/CSC3-2004.crl "application/pkix-crl" 1183328737.107 0.570 137.157.56.223 301 777 GET http://www.starnet.com/expiredialog/demo.php?product_name=xwin32&time_remain=1800&version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid={dfe167ce-f51c-4fd4-af80-25f31246f6bc} "text/html" 1183328737.908 0.781 137.157.56.139 200 5696 GET http://www.starnet.com/expiredialog/demo.php/xwin32/1800?version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid=%7bdfe167ce-f51c-4fd4-af80-25f31246f6bc%7d "text/html" 1183328738.777 0.759 137.157.56.91 200 …

Member Avatar for JeoSaurus
0
98
Member Avatar for Diwakar Gana

Dear All, Can any one tell me how to convert the IP address from dec to hex decimal. For Ex: 255.102.25.02/32 should look like FF661902 since its 32 bit 255.102.25.02/31 should derive two values FF661902, FF661903 since its 31 bit

Member Avatar for sumithps
0
573
Member Avatar for tamsam

how to set the password character in perl script ,please help me and thanks to advans

Member Avatar for insertable
0
59
Member Avatar for Mahendra Jadhav

Hi All, I am new in perl, can anyone tell me how to read HTML template in PERL? Regards, Mahendra Jadhav

Member Avatar for insertable
0
94
Member Avatar for shrawansher

Hey I am a newbie to perl and I can't seem to solve this problem.My perl program executes some command files each of which create a log file in the format "server.YYYY-MM-DD.HH-MM-SS.XXX.log". After executing the command files i wish to parse through the log files created and look for errors.Could …

Member Avatar for insertable
0
183

The End.