list operators (rightward)

2005-08-19 Thread Pine Yan
I saw there two sections in perl reference mention about list operators. http://perldoc.perl.org/perlop.html First one is Terms and List Operators (Leftward) and second one is List Operators (Rightward) I don't quite get what it want to tell very well. Looks like the first one discusses case

Re: Fwd: perl one liiner

2005-08-19 Thread Binish A R
anu p wrote: Note: forwarded message attached. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Subject: perl one liiner

Re: test

2005-08-19 Thread Chris Devers
On Fri, 19 Aug 2005, Tony Frasketi wrote: > test F Please don't send test messages to mailing lists. Thanks. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
On Fri, Aug 19, 2005 at 05:51:10PM +0530, Sastry wrote: > Hi > > The test case uses the invariant character that is below <127 on > ISO-8859-16 codepage. Since character 'a' has a codepoint of 129 on > EBCDIC, is there a place in the code where it should apply > NATIVE_TO_ASCII macro on the inp

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
On Fri, Aug 19, 2005 at 05:01:04PM +0530, Sastry wrote: > Hi Nicholas > > With reference to my previous mail on encoding module > > use Encode; > $string = "a"; > $enc_string = encode("iso-8859-16", $string); > print "\n String: $string\n"; > print "\n enc_string: $enc_string\n"; > > a)How diffe

perl 5.6.1debug version 1.07

2005-08-19 Thread DBSMITH
All, I am having some weird system call return codes and I am hoping for some help. when I run in debug mode a system command I get this error: here is my debugger code perl -dT foo use strict; use warnings; $ENV{"PATH"} = qq (/blah blah/); system ("import -v H02046 900") or die $!; END DEBU

RE: copy and run a program on remote windows

2005-08-19 Thread Timothy Johnson
What operating systems do you plan to support? If you are going to be using Win2k or above, then I would look into using WMI to spawn processes remotely. For that you will only need Win32::OLE. The only catch is that if WMI fails, it has a tendency to hang, so I recommend asynchronous processin

Re: References Question

2005-08-19 Thread Rex Rex
In Perl, my($array, @array, %array); open(ARRAY, ">file.txt"); opendir(ARRAY, "C:/DIR"); are all different. They are not the same. Thanks, Rex On 8/19/05, Dave Adams <[EMAIL PROTECTED]> wrote: > Dan, > > It appears the $apple->[2] and $apple[2] are not the same thing. > > > #!/usr/bin/perl -

Re: References Question

2005-08-19 Thread Jeff 'japhy' Pinyan
On Aug 19, Dave Adams said: In the code below, I thought $array[2] and $array->[2] were different but they give me the same result. Any explaination for this? my @array = (1,2,3); my $array [EMAIL PROTECTED]; print ref($array); print $array[2]; print $array->[2]; The constructs $this[2] and

RE: not using strict problems

2005-08-19 Thread Charles K. Clarkson
Brent Clark wrote: : Hi list : : I have a problem whereby another new programmer (like myself) : likes NOT to use strict in his code where by I do. : : The problem is that I have is that he as writting a pm file and : basically just did is as so: [snipped code] One

Re: References Question

2005-08-19 Thread Dave Adams
Dan, It appears the $apple->[2] and $apple[2] are not the same thing. #!/usr/bin/perl -w use strict; my $apple = [4,5,6]; #example of a scalar representing an array print ref($apple) . $apple->[2] . "\n"; print ref($apple) . $apple[2] . "\n"; errror msg: Global symbol "@apple" requires expl

Re: References Question

2005-08-19 Thread Octavian Rasnita
This is because you gave the same name to the array and to the scalar variables. $array[2] means the third element of @array. $array->[2] refers to the element from $array reference. Teddy - Original Message - From: "Dave Adams" <[EMAIL PROTECTED]> To: "beginners perl" Sent: Friday, A

References Question

2005-08-19 Thread Dave Adams
In the code below, I thought $array[2] and $array->[2] were different but they give me the same result. Any explaination for this? my @array = (1,2,3); my $array [EMAIL PROTECTED]; print ref($array); print $array[2]; print $array->[2]; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Problem linking DynaLoader.a on RH9

2005-08-19 Thread Rich Wells
Hello to the list and I hope someone can shed some light on my problem. I've created a C executable that has Perl embedded in it. Furthermore, I have also created an XSUB package so that the Perl code I run in this C executable can have access to a socketized API in the XSUB bound into the exe

test

2005-08-19 Thread Tony Frasketi
test -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: not using strict problems

2005-08-19 Thread JupiterHost.Net
I have a problem whereby another new programmer (like myself) likes NOT to use strict in his code where by I do. My own anecdote: I didn't think that using the 'strict' or 'warnings' pragmas was important either, once. And I'm a very novice programmer. However, when I thought about, I alw

pack and unpack .. and 16 bit integers

2005-08-19 Thread zach
hi, first, sorry for my english and i hope you understand. Honestly im still confused with all defines like : 1. Unsigned Char value, is that 'invisible char'? like we press 'spacebar key' or 'ctrl+f1' ? 2. In perlfunc pack i read something like this -> 'the pack code for big endian is n for 16

Need Help on Win32::ODBC

2005-08-19 Thread Anil Kumar, Malyala
Hi friends, Need urgent help.. I am trying to pull data from sybase DB using ODBC connection... Here follows the code I am using... I am not getting the output. Please let me know where I am wrong Find each step... 1. $db = new Win32::ODBC("DSN=my DSN;UID=UID;PWD=PWD") This is succ

RE: not using strict problems

2005-08-19 Thread Ryan Frantz
> -Original Message- > From: Brent Clark [mailto:[EMAIL PROTECTED] > Sent: Friday, August 19, 2005 3:40 AM > To: Beginners Perl > Subject: not using strict problems > > Hi list > > I have a problem whereby another new programmer (like myself) likes NOT to > use strict in his code where

Re: Encoding iso-8859-16

2005-08-19 Thread Sastry
Hi The test case uses the invariant character that is below <127 on ISO-8859-16 codepage. Since character 'a' has a codepoint of 129 on EBCDIC, is there a place in the code where it should apply NATIVE_TO_ASCII macro on the input character? -Sastry On 8/19/05, Nicholas Clark <[EMAIL PROTECTE

Re: Encoding iso-8859-16

2005-08-19 Thread Sastry
Hi Nicholas With reference to my previous mail on encoding module use Encode; $string = "a"; $enc_string = encode("iso-8859-16", $string); print "\n String: $string\n"; print "\n enc_string: $enc_string\n"; a)How different are those ext/Encode/def_t.c and ext/Encode/Byte/byte_t.c files in EBCDI

Packages for writing screen scrapers

2005-08-19 Thread Siegfried Heintze
[Siegfried Heintze] I've been using HTML::Parser with MySQL and I've had a lot of problems with (both RAM and disk) memory leaks and multi-threading. I was really disappointed, for example, discover that having multiple threads did not really speed things up at all. I wonder if HTML::Parser is not

Re: A question related to column subsetting

2005-08-19 Thread Xavier Noria
On Aug 18, 2005, at 23:34, Li, Aiguo (NIH/NCI) wrote: I need to write a perl script to extract a subset of columns based on the column header. For example, I have a dataset containing 200 columns and a list of 10 column names. I like to extract a dataset that contains the 10 columns of d

A question related to column subsetting

2005-08-19 Thread Li, Aiguo (NIH/NCI)
Hi, all. I need to write a perl script to extract a subset of columns based on the column header. For example, I have a dataset containing 200 columns and a list of 10 column names. I like to extract a dataset that contains the 10 columns of data only from the whole dataset. What in my mi

PLEASE HELP ME TO SLOVE THIS PROBLEM

2005-08-19 Thread Santosh Challa
Hi Sir, I am facing problem in stripping attachements in my outlook mailbox. The main objective of my project is to open the mails and the attachments and print both to my local printer.And moreover I searched all sites but no site have a solution. I am almost helpless now from past 1 month. I a

Re: not using strict problems

2005-08-19 Thread tmatsumoto
Hi Brent, it shouldn't be a problem the way he wrote the pm, unless he doesn't 'return' anything in the subroutines. I had a similar problem having to convert a pm and the script I was using into 'strict'. I values that I could use between the pm and the script when 'strict' was off couldn't

not using strict problems

2005-08-19 Thread Brent Clark
Hi list I have a problem whereby another new programmer (like myself) likes NOT to use strict in his code where by I do. The problem is that I have is that he as writting a pm file and basically just did is as so: use pm file &somename; sub somename { $var1 = $linex[0]; $va

UTF8 Character issue in XML

2005-08-19 Thread Anish Kumar K
Hi I am using XML::LibXML module, In that I was getting an error like ":90: error: Input is not proper UTF-8, indicate encoding !" The code I am having is this my $parser = XML::LibXML->new(); my $tree = $parser->parse_string($content); my $root = $tree->getDocumentElement; THIS IF FROM THE SE