1,633 Topics

Member Avatar for
Member Avatar for chahinez.abdelo.9

classification of a text in a corpus with five themes and each theme contains 10 items in perl for exemple: i have: 1 theme food 10 articles about food 2 theme politic 10 articles about politic ...etc and i give him a new text and he classify this text on …

Member Avatar for Sarah_41
1
701
Member Avatar for hassanumair1

how can i convert xml based script; which is created by SqlYog software. I want to convert this xml based script to batch file (full coding from xml to batch file script; not only batch(.bat) format.) So i can run the synchronization / backup directly clicking with batch file. give …

Member Avatar for jimmichaels29
0
2K
Member Avatar for sadiyah_1

Hey!!!!I'm looking for the perl to java conversion!!!! Can Someone please help me with the snippet!!!! As soon as possible!! Its very important!!!! my @hosts = get_hosts_ips_bymkt(); for(my $i = 0; $i < scalar(@hosts); $i = $i + 1){ my $ssh_true = eval { Net::SSH::Perl->new($hosts[$i]) }; // # $success = …

Member Avatar for JamesCherrill
0
921
Member Avatar for Girish_1

Compare two files & output in third file in Perl scripting file 1 = 1,2,3,4 filw 2 = 1,3,2.4 output = 2,3 putput =3,2 basically want compare 2 files and store diff in other output fil

Member Avatar for happygeek
0
246
Member Avatar for Jag_1

I am trying to process the data in a single file . i have to read the file and create a hash structure,get the value of fruitname append it to fruitCount and fruitValue and delete the line fruitName and write the entire output after the change is done.Given below is …

Member Avatar for 2teez
0
1K
Member Avatar for Dev_9
Member Avatar for Kang_1
Member Avatar for Jason_31

Hello. I've been programming in Perl for a while and wanted to add something to my code in order to pull data from a text file. I am using regular expressions to get the data I need with the exception that once in a while, the data I need will …

Member Avatar for pty
0
283
Member Avatar for find_1

How to take the maximum digits file linked with the folder using perl? my $location = $output_dir; print $location; open LOGFILE, $location; my $first_line = 1; #print $first_line; my $max_id; while (<LOGFILE>) { if (/rev_(\d)+/) { if ($first_line) { $first_line = 0; $max_id = $1; } else { $max_id = …

Member Avatar for find_1
0
328
Member Avatar for find_1

sub runDir($$); sub runDir($$) { my $prefix = shift @_; my $dir = shift @_; opendir(DIR, $dir) or die $!; my @entries = readdir(DIR); close(DIR); foreach my $file (@entries) { next if ($file =~ /^\.+$/); if ( -d $dir . '/' . $file) { runDir($prefix . $file .'_', $dir . …

0
187
Member Avatar for koneill

All, I am trying to a call a fly program which generates dynamic images on a webpage and I'm geting this error -> malformed header from script. Bad header=/usr/home/gump/bin/fly: The main code is as such and I've tried various varaitions of the Content-Type headers to no avail - the simple-lib.pl …

Member Avatar for Geoff_3
0
1K
Member Avatar for Shirin_2

Hi PerlGurus, I am really new to perl and liitle handson with the concepts here. I am trying to learn the hash & Array concepts and come up a self exercise to do practice. *Got two files * # inFile01 as below: # CLAYCOUNTY;Wood;statecode=FL CLAYCOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX NASSAUCOUNTY;Wood;statecode=UT …

Member Avatar for Shirin_2
0
995
Member Avatar for gerald_8

sir good day. i have question regarding PLC in DOL i can start the motor but i cannot stop it using remote in cpu

0
177
Member Avatar for debayanenator

Hi , I am looking for some directions with this and posted the same question in one more forum. am trying to get the word type as an output from an input file (input.txt) which looks like this, Input file John N N loved V Mary N N . S …

Member Avatar for 2teez
0
225
Member Avatar for Koel

Hi, I have two text files. The first one has a list of words , like the following : File 1.txt Laura Samuel Gerry Peter Maggie The second one has paragraphs on it. For e.g. : File2.txt Laura is about to meet Gerry and is planning to take Peter along …

Member Avatar for Koel
0
306
Member Avatar for debayanenator

Hello, Can you please help me with the following scenario in Perl scripting? I want to compare two text files and save output of this comparision in third file with flag PP. So basically, the word common in both the text files should be printed with a flag |PP on …

Member Avatar for debayanenator
0
948
Member Avatar for patricksss
Member Avatar for nikhil_7

Hello, I'm new to perl and I'm trying to compile a perl code that I downloaded from web. I'm getting the below error. -------------------------------------------------------------------------------------------------------------------------- Can't locate docs/perlmod/DoxyDocs.pm in @INC (you may need to install the docs::perlmod::DoxyDocs module) --------------------------------------------------------------------------------------------------------------------------- Where do I download DoxyDocs module from for linux? Please help me …

Member Avatar for 2teez
0
486
Member Avatar for johntm

HI I have a master spreadsheet with 60 columns, which is updated with new data from an updates file. The new data can be whole new lines or just cells. luckily i came across your site and found an excellent script which does exactly what i want, the only problem …

Member Avatar for 2teez
0
480
Member Avatar for vivek.vivek

I have written a code to automate my webpage to do a search and download a report. Till selection of the report everything works fine. But download click is not working after clicking checkbox. It works well if i keep the download click bust before checkbox select. But I need …

0
273
Member Avatar for rantnna

I have two files large files: 1) file1.txt as below: ( more than 20,000 records ) 5020120475 |13ZJ38000813 |20141204|R 5020127431 |13ZJ38001569 |20141201|R 5020127689 |12ZJ44000606 |20141203|R 5020127728 |13ZJ38001356 |20141203|R 5020127956 |13ZJ62002544 |20141205|R 5020127972 |13ZJ49000082 |20141205|R 5020128325 |13ZJ57000785 |20141210|R 5020128706 |13ZJ38002805 |20141211|R 5020129084 |10XJ70107764 |20141217|R 5020129102 |12ZJ54000041 |20141217|R and 2) other file …

Member Avatar for 2teez
0
378
Member Avatar for analys

Hi, I'm new to perl and I'm stuck at regular expression on which to get the data of deck, super and trial from an array. I have an input file as the following : `deck { @STATE = "this is low"; @ACCESS = "RW"; } [6:0]; super { @STATE = …

0
218
Member Avatar for Chris.T

0 down vote favorite I'm using Wireshark packet analyzer & when I filter for all "Websocket" packets I see what I am sending /receiving to the host. When I check individual packets mine always show as [MASKED], but you can 'Umask Payload' which shows the data in clear text that …

Member Avatar for rubberman
-1
461
Member Avatar for pjrey

is it possible to update a portion of our website via email (if a blank email is sent, the dhtml window will be hidden) if an email with text is sent, it will show the box, saying NEWS and a border, with the text sent via email inside... when you …

Member Avatar for clickmind
-1
1K
Member Avatar for killingmonk

My program is supposed to decide whether a number is an integer or not. I've tried: if ($variable % 1 = 0) and: if ($variable % 1.0 = 0) I know that it can be done with regular expressions, but I'm only on day three of Sams Perl in 21 …

Member Avatar for 2teez
0
302
Member Avatar for Ahmed_65

I am using XML:twig to extract some attributes from an XML file using Perl; Here is my code: use XML::Twig; my $file = $ARGV[0]; $file =~ /(.+)\.xml/; my $outfile = $1.".snp" ; open my $out,'>',$outfile or die "Could not open file '$outfile' $!"; my $twig = XML::Twig->new ( twig_handlers => …

Member Avatar for 2teez
0
287
Member Avatar for Ahmed_65

Hi guys I have two files as listed below. I want to compare first column from second file with the first column from first file, if exists, give it the same value of second column from the first file as second column for the second file. If not, increase the …

Member Avatar for Ahmed_65
0
362
Member Avatar for Mace_1

I want an idea on how to make online chatting network in perl, just like a messenger where if there's an online people you can chat him/her. I know how to create a chat network in perl but everyone can chat in an single network like a public chat room, …

Member Avatar for mcglk
0
313
Member Avatar for alan_123

I am new to perl. In a string How do I replace a backward slash with a forward slash? when I call the following perl api $FindBin::Bin; I get the path as follows $myPath = c:/perl/test I would like to covert this to c:\perl\test I did try the following and …

Member Avatar for Taywin
0
6K
Member Avatar for Lev_2

HI, With Win32::GUI - need to create a window with scroll bar , within a main window. This second window (child of a main window) will hold different buttons/checkboxes ,etc , and will have a scroll bar . Did not find so far any package in win32::GUI that will enable …

Member Avatar for Taywin
0
395

The End.