2,977 Topics

Member Avatar for
Member Avatar for perlseek

Hello Everyone, I am new to the perl. Learning new things each day. I am creating a script which will send me a notification on mail. I am trying to get output in such a way that my header of notification should be in bold. Please let me know how …

Member Avatar for jbennet
0
15
Member Avatar for s3cur1ty

Hi, i'm a practicing sysadmin and I joined this forum for some nice info. I found this forum via google search. right now i'm learning C and Perl. Well lets wrap this intro up bye!

Member Avatar for jbennet
0
71
Member Avatar for karthik.c

hi guys ,im new to perl programming and when i programmed tcp client-server coding in perl i encountered some problem saying : Can't locate socket.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-...) i tried this in linux-centos and version of perl im using is: v5.8.5 my program was like this: tcp-server: [code=perl] …

Member Avatar for karthik.c
0
186
Member Avatar for Noko

Hello. I have experienced a very weird problem with my myisam table with appr. 1M rows. Query [CODE]select num,subnum from a where trip='!mOWjKAWAII' order by timestamp asc limit 10;[/CODE] executes immediately, which is just as expected. But with a slight modification: [code]select num,subnum from a where trip='!mOWjKAWAII' order by timestamp …

Member Avatar for Noko
0
1K
Member Avatar for dattaforit

Dear Friends, I have a windows dll, in my perl script, i am able to load the dll using the Win32::LoadLibrary function and also i a getting the function pointer of the function in the dll, I am using Win32::GetProcAddress function to get the function pointer of the functions in …

Member Avatar for KevinADC
0
233
Member Avatar for onaclov2000

I posted this in the Perl Section of the forum.[URL="http://www.daniweb.com/forums/thread179893.html"]http://www.daniweb.com/forums/thread179893.html[/URL] What I'm looking for is a way to find a "list" of all files selected in a particular window, I.E. if there is 3 out of the 10 files selected return the 3 filenames. Anyone have any hints?

0
88
Member Avatar for k2k

hi , i am pretty new to perl and I have a quick question. below the code won't work unless fileName is under the same directory. would any one please give a quick reference in how to specify the full address of the file? such as /home/myName/fileName [code] #!/usr/bin/perl cat …

Member Avatar for k2k
0
77
Member Avatar for arnaud257

Hi, Using dreamweaver / webassist extension / Apache 2.0.59, MySQL 5.0.41, PHP 5.2.6 on a mac: After selecting my criteria on my search page I go to a result page where I display several information from my database. I have 10 results per page and each result has field displaying …

Member Avatar for arnaud257
0
195
Member Avatar for raghavendra83

Hi All, I am trying a simple program in PERL, but unable to get it working [CODE] $log="test.log"; open(LOGFILE, $log) or die("Could not open log file."); foreach $line (<LOGFILE>) { chomp($line); if($line eq "Raghu") { print "Found a group\n"; $var=<LOGFILE>; chomp($var); print "$var\n"; } } [/CODE] Whenever the line contains …

Member Avatar for KevinADC
0
184
Member Avatar for Sappster

Hi, I'm fairly new to web development and very new to Perl (although Im picking things up as I use it more) I am currently working on a cgi application as part of a web site. The application is written in perl and I need some image manipulation. I have …

Member Avatar for KevinADC
0
79
Member Avatar for sillyminds

Please provide me a method or script for opening remote connection to remote windows systems from a windows system for doing admin tasks like assigning a local user admin rights to the remote windows system. Well Win32 Net:Admin can be I think, used for getting local user properties or group …

Member Avatar for vharry
0
104
Member Avatar for dattaforit

Dear friends, I want to use the Win32::GuidGen() in my perl script. My Perl version is 5.8.9 and it is on windows(64 bit). For this function, i will require win32::API, for where can i get the win32::API module for windows 64 bit. Please do the needful. Thanks in advance. Regards,

0
47
Member Avatar for spivey

I am a librarian, a self-taught wretch of a coder. I've only been at PHP for a couple of years. Already, someone helped me sort out a Perl issue that had been driving me nuts, and I have lots more to learn about Perl repositories, etc. I'm happy to be …

Member Avatar for Lizapotter
0
38
Member Avatar for southernd0529

[code=cplusplus] #include <iostream> using namespace std; int main() { const double WEEKS=5; const double TAXES=.14; const double CLOTHINGEXPENSES=.10; const double SUPPLIESEXPENSES=.01; const double SAVINGSBONDS=.25; const double PSAVINGSBONDS=.50; //Declaration Section double hours, rate, taxes, grosspay, netincome, clothingexpenses; double remainingbalance, savingsbonds, psavingsbonds, suppliesexpenses; double finaltotal; //Input Section cout<<fixed<<showpoint; cout.precision(2); //sets the 'double' …

Member Avatar for southernd0529
0
132
Member Avatar for eapln
Member Avatar for eapln
0
95
Member Avatar for curtissumpter

Hi, Everything else in this code works properly but the keyTyped method is not working properly. I have been working on this for sometime. Any help would be appreciated. Also, any advice on getting my southPanel to appear when I start the application? It appears but only after I expand …

Member Avatar for sciwizeh
0
139
Member Avatar for klactose

Hello, I was wondering if there was a built in feature in perl to convert each character in a string to its corresponding ASCII value. Or is this something that I have to program manually?

Member Avatar for KevinADC
0
61
Member Avatar for spivey

I have tried getting my Perl 5.8.9 installation configured for Mysql. I have used cpan and PPM to get mysqlPP, DBD::mysql-simple modules. I am trying this on Windows XP with Mysql 5. Here is my latest error: C:\>perl c:\perl\test.pl DBD::mysql initialisation failed: Can't locate object method "driver" via package "DBD::mysql" …

Member Avatar for KevinADC
0
259
Member Avatar for mtramnes

I started a thread last week with a problem that i have since figure out. Now my problem is this. I need to take a file called "gettysburg.txt" and make it so each word is printed on its own line in a new text file called ex1out. When I run …

Member Avatar for Comatose
0
80
Member Avatar for yair7190

Although it sounds pretty simple, i haven't found a proper answer for this issue. I want to know how can i call a perl script and pass a variable to it. For example, lets say "Parse.pl" is a parsing script of some sort and i want to call it from …

Member Avatar for bryansmith123
0
322
Member Avatar for ITSAMB

Hello experts, I need your help in installing a Perl module. I am trying to install XML::LibXML on development server from couple of days now. I do not want to compile and install the module manually, as it needs some C components. I would like to install the binary distribution …

0
71
Member Avatar for sjcomp

Hello, I'm reading a wav file and I'd like to output normalized samples. I do it in a for loop, but I was wondering if I can do it more efficient. I also have a filling that I'm not utilizing all the features of the language to make this code …

0
55
Member Avatar for mtramnes

I have a perl assignment I have a question about. I have to take a text file (gettysburgh.txt) and I have to alter it. I think my code is correct but when I run the program it says no such file exists. The file is saved on my computer so …

Member Avatar for KevinADC
0
172
Member Avatar for rolinski

Hello! Does somebody know how to print the following fields from these lines chr1 166851489 166851564 chr1 166851665 166851740 so that Perl prints only: chr1 166851489 166851740 All fields are tab-separated. Thank you. /Rob

Member Avatar for KevinADC
0
353
Member Avatar for Ene Uran

For the second year running Python has been selected as the Language of the Year by Linux users: [code] Linux Users' Programming Languages of the Year 2008 PHP 115 13.36% Perl 72 8.36% Python 226 26.25% Ruby 46 5.34% C 114 13.24% C++ 129 14.98% Java 106 12.31% Lisp 9 …

Member Avatar for breatheasier
0
147
Member Avatar for pharitha

Could anyone help me splitting a big file into subfiles. The file is something similar to this: 1.SYSTEM = UNIX 2.variable = value 3.>ACTIVATED 1 4.ALL: FILE1 5.ALL:FILE2 6.ALL:FILE3 7.ALL:FILE4 8.>ACTIVATED 1 9. ################* 10.>>CONDITIONS 11.################ 12.MODEL: 13.<one ExeSimpleName> : <one or more Flags> : [Options] I need to split …

Member Avatar for mitchems
0
153
Member Avatar for mitchems

Hi, This is my first question in the forum and I was wondering if anyone knew the answer. For the past 8 years or so, I have been using OLE to transfer information between perl and excel and word. I actually wrote a word version today for the first time …

Member Avatar for mitchems
0
141
Member Avatar for bluue

I changed the name of a folder so that it would meet the requirements for my assignment submission and now my program wont run in the command window. its saying it can't find the .txt files. However, the program runs without any problems in JCreator. i have a folder called …

Member Avatar for bluue
0
103
Member Avatar for bhavna_816

I want to create a list of hyperlink buttons, and the bulleted list should contain some images before the link. For example > how > can > i > get > this So in place of ">" i need different images, how can i do that in Silverlight? Thanks in …

0
60
Member Avatar for gornhorse

Hi, I have two shell scripts that do the same thing, but are written differently. The first one works: [code] size=0 pattern=foo for file in * do [ ! -f $file ] && continue if grep $pattern $file > /dev/null then tsize=`cat $file |wc -c` size=`expr $size + $tsize` echo …

Member Avatar for eggi
0
153
Member Avatar for sid78669

as part of my assignment i'm trying to validate an email address stored in an hash, with the key: 'email' and the value as the data supplied. But the email is not getting validated using reg-ex: [CODE] if($form_element{'email'} =~ m/^[A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/i){ $values = 0; $mail = "InValid!"; } else { $mail …

Member Avatar for sid78669
0
331
Member Avatar for viktorijakup

Hi ! This sctipt work with \insert{aaa.tex} but dont work with \insert aaa.tex What I must do ?! [ICODE]while(/^\\insert\{(.*?)(\.tex)?\}/){ $pries=$`."\n"; $nekeisk=$&; $vardas=$1; $po=$'; $failiukas=$1.".tex"; if(-e "$dir/$failiukas"){ open (IN2,"<$failiukas") || die "negaliu atidaryti $failiukas failo.\n"; $vidus=<IN2>; close IN2; $visas=$visas.$pries.$vidus."\n"; $_=$po; print "Idetas failas $failiukas\n"; } else{ $visas=$visas.$pries.$failiukas."\n"; $_=$po; print "$failiukas failas …

Member Avatar for KevinADC
0
112
Member Avatar for pong pong

Hi, I am new in this forum and perl as well. I have a question. I have a form with 3 fields name, phone number and email address. now if any user put the wrong data in any one or more field, I just want to display a message where …

Member Avatar for mitchems
0
188
Member Avatar for arseniew

Hello, Im trying to make jLabel component start default system browser and go to the specified page. I've tried to do this by adding listener to the jLabel and this part works fine, i have the problem with starting up the browser. I have only found system specific ways to …

Member Avatar for arseniew
0
102
Member Avatar for mishel

hi, I got this program from one of forums: [url]http://www.perlguru.com/gforum.cgi?post=32920[/url] its something like this: ------------------------------------------------------------------------- open(IN, "/path/outModified.pl") or die "$!"; while (my $line = <IN>) { chomp($line); my @array = (split (/\s+/, $line))[6, 7, 8]; # print "@array\n"; push @points, [ @array ]; } close(IN); print '@points : ', Dumper …

Member Avatar for KevinADC
0
188
Member Avatar for perl1user

hi, i'd like to know how to get the number of regexp matches a pattern returns ex: if I have $_ = "fooFOObarBAR";$_ =~ /[a-z]/ it would return 6 thx SNIP

Member Avatar for KevinADC
0
311
Member Avatar for k88joshi

Hello, I am working on something where i need to search and replace many variable names of a program. For example, I have a class Hello and its public variable is world, but the variable world has been changed to earth so now in the program i need to go …

Member Avatar for mitchems
0
105
Member Avatar for reno02

I need to have a script where the date will be entered using numbers and forward slashes. The month and day numbers can be entered using one or two digits, and the year number can be entered using either two or four digits. The date should be displayed, for example, …

Member Avatar for mitchems
0
119
Member Avatar for headedtomexico

im working with some perl code, and im really unfamiliar with the language, and I have a situation. I'm working with a package of perl scripts for a game, there are about 4000 of them and counting. They are release constantly, and altering their contents isnt really an option, it …

Member Avatar for Comatose
0
157
Member Avatar for localp

i want to create a perl /CGI program Cookie, where the username can be remembered even if the browser is shut down and restarted. i am new to Perl programming, and i have no clue from where to start on this, but i am aware on how to set cookies, …

Member Avatar for mitchems
0
148
Member Avatar for aparna balkwade

i m using perl script to do something where i want to change my current directory to mnt in c: only.. bt using function system("cd c:\mnt"); is nt working. system("dir"); is working properly ,also some other command using systems function in perl script is working fine bt dnt know what …

Member Avatar for mitchems
0
1K
Member Avatar for inked

hi ive got this assignment to do, ive got to write a perl program that analyses a text file to obtain statistics. Need some help with this particular section when run the program should check if an argument has been provided if not the program should prompt for and accept …

Member Avatar for mitchems
0
89
Member Avatar for perl1user

how do I retreive query string in perl ? let's say I have [url]http://server.com?name=foo[/url] how do I get the value of 'name' thx [email]cvv3@yahoo.com[/email]

Member Avatar for mitchems
0
140
Member Avatar for jimwall80

Hello all, Greetings! Question: How does one run a perl program without it being a cgi program? Can I write a script in perl as a stand alone program and run it without uploading to the http server? if so How? I have saved my files with a .pl file …

Member Avatar for mitchems
0
162
Member Avatar for perl1user
Member Avatar for mitchems
0
92
Member Avatar for sk8te320

Hi to All, I am I guess for lack of a better word, A Newbie when it comes to Perl. I was given a project to accomplish the following; 1. write a perl executable script that will execute a SQL query. 2. then I need to take the data retrieved …

Member Avatar for mitchems
0
117
Member Avatar for Knowsum

I am using XP service pack 3 and have installed WMP 11. I try to start the program and get the message " Windows Media Player is not installed properly and must be reinstalled. Do you wan:'( t to install the player from the Microsoft Web site?" Accepting 'yes' to …

Member Avatar for c-tech
0
335
Member Avatar for headedtomexico

I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' …

Member Avatar for KevinADC
0
102
Member Avatar for Agent Cosmic

I've installed a few software quite some time ago and the icons aren't working correctly. I tried solving it with Tuneup and CCleaner but it can't solve it either. First, when I open the file, they did not get the file type and ask me what program I want to …

Member Avatar for Agent Cosmic
0
171
Member Avatar for john_prince

Hi, My CSV files contains embedded double quotes, as it does not conform to the RFC 4180 standard and results in parser complication. I tried using Perl Module "Text::CSV_XS" to properly escape with double-quotes, the output file gives me the result as desired, however some of the line breaks into …

Member Avatar for john_prince
0
186

The End.