RE: returning file info to C code

2008-06-24 Thread Thomas Bätzler
shorti <[EMAIL PROTECTED]> asked: > Hello, I am a C coder but new to Perl. I am running in an > AIX environment. I was wondering if there was a Perl way to > return string data (or larger int values) to a C program? You exchange data with a Perl program in the same way you'd exchange data with

Re: isolating text in a string

2008-06-24 Thread John W. Krahn
Tim Bowden wrote: Hi, Hello, I'm trying to isolate text in a string. My string is typically of the form: sometext["moretext", I would like to isolate moretext. I tried: #!/usr/bin/perl -w my $string = 'sometext["moretext",'; print $string; my $snippet; ($snippet, $snippet) = split(/$string/

returning file info to C code

2008-06-24 Thread shorti
Hello, I am a C coder but new to Perl. I am running in an AIX environment. I was wondering if there was a Perl way to return string data (or larger int values) to a C program? For instance, if I use the command : ps aux | grep process123 my out put would look like this: emextra 45304 0.0

isolating text in a string

2008-06-24 Thread Tim Bowden
Hi, I'm trying to isolate text in a string. My string is typically of the form: sometext["moretext", I would like to isolate moretext. I tried: #!/usr/bin/perl -w my $string = 'sometext["moretext",'; print $string; my $snippet; ($snippet, $snippet) = split(/$string/,\[,2); print "$snippet\n"; I

Re: Sending HTML files via e-mail

2008-06-24 Thread Gunnar Hjalmarsson
btna wrote: I am trying to write a simple Perl script that will accept the HTML file as one argument and then send an e-mail with the HTML file. Do not multi-post, please!! http://groups.google.com/group/comp.lang.perl.misc/browse_frm/thread/a3d9531beb61d6e9 -- Gunnar Hjalmarsson Email: http:/

Re: Sending HTML files via e-mail

2008-06-24 Thread David Romero
Use the Mail::Sender Module, this is part of the Mail::Sender documentation open IN, $htmlfile or die "Cannot open $htmlfile : $!\n"; $sender->Open({ from => '[EMAIL PROTECTED]', to => '[EMAIL PROTECTED]', subject => 'HTML test', ctype => "text/html", encoding => "7bit" }

need help for IEautomation in perl

2008-06-24 Thread pranjal
Hi, I am new to perl and I am learning IEautomation using perl. I have written following code to automate the download of a game but I am not able to click on "Download FREE!" button. My code is below: #!/usr/bin/perl use Win32::IEAutomation; my $ie = Win32::IEAutomation->new(visible => 1, m

Sending HTML files via e-mail

2008-06-24 Thread btna
Hi all, I am trying to write a simple Perl script that will accept the HTML file as one argument and then send an e-mail with the HTML file. I don't want the HTML file attached to the e-mail but to be part of the body of the e-mail. In other words, I need the HTML file that I am sending to be the

Re: File output - help

2008-06-24 Thread Rob Dixon
Dermot wrote: > Welcome, > > > 2008/6/24 jet speed <[EMAIL PROTECTED]>: >> Hi, >> >> I am beginner to perl, >> >> I have a file name cxout and i want to capture just the LUN 415, LUN 815 >> into arrray & then print from the array. my idea is to capture different >> element form this file and the

SELECT STATEMENT - with WHERE

2008-06-24 Thread jobst müller
hi there hello list first of all - this is slightly off - topic. but i need your helphere i want to do some db-requests via a phpMyadmin frontend. please advice - i am aware that this is slightly of topic but - i needhelp with a SELECT-STATEMENT here we go; the dump looks like this:

RegEx symbol matching

2008-06-24 Thread cantunes1
Hi, I am attempting to search a bit of HTML and tag references to certain mathematical symbols. However, I am having an issue recognizing the π symbol. It seems to register as a lower case p. Is there a code that one can use inside the regular expression to get around this problem. Any help with

Re: File output - help

2008-06-24 Thread jet speed
Thanks Dermot, it gives me the required output. Much appreciated. On 6/24/08, Dermot <[EMAIL PROTECTED]> wrote: > > Welcome, > > > 2008/6/24 jet speed <[EMAIL PROTECTED]>: > > Hi, > > > > I am beginner to perl, > > > > I have a file name cxout and i want to capture just the LUN 415, LUN 815 > >

Re: File output - help

2008-06-24 Thread Dermot
Welcome, 2008/6/24 jet speed <[EMAIL PROTECTED]>: > Hi, > > I am beginner to perl, > > I have a file name cxout and i want to capture just the LUN 415, LUN 815 > into arrray & then print from the array. my idea is to capture different > element form this file and the print form the array. Any hel

File output - help

2008-06-24 Thread jet speed
Hi, I am beginner to perl, I have a file name cxout and i want to capture just the LUN 415, LUN 815 into arrray & then print from the array. my idea is to capture different element form this file and the print form the array. Any help would be much appericated. my sample script looks as below.