Re: What modules should I use to transfer a video scrip through the net?

2007-05-28 Thread David Moreno Garza
[EMAIL PROTECTED] wrote: > I am intended to make a scrip to do this: you could send a video scrip > from your PC to a friend through the net. At the same time, the > receiver should be able to play the video script.Yet, I don't know how > to get Perl to do it? Which types of modules I may need? Sh

Re: Array of Array refs

2007-05-28 Thread Paul Lalli
On May 28, 3:26 pm, [EMAIL PROTECTED] (Brian) wrote: > On May 27, 9:00 pm, [EMAIL PROTECTED] (Brian) wrote: > > > > > > > Hi All- > > I am trudging through some DBI, XML, etc.. I had a problem and was > > baffled by how to get at array elements out of a series of pushed > > array refs. But, by si

Re: Array of Array refs

2007-05-28 Thread Paul Lalli
On May 28, 3:22 pm, [EMAIL PROTECTED] (Brian) wrote: > my variable names end with A for array and H for hash, Pointless. Variable names in Perl identify what kind of variable they are. @ for arrays, % for hashes. [ ] for accessing an element of a hash, { } for accessing element of a hash. > ye

Re: Array of Array refs

2007-05-28 Thread Brian
On May 27, 9:00 pm, [EMAIL PROTECTED] (Brian) wrote: > Hi All- > I am trudging through some DBI, XML, etc.. I had a problem and was > baffled by how to get at array elements out of a series of pushed > array refs. But, by simplifying the problem, I found that the syntax I > used was in error. her

Re: Array of Array refs

2007-05-28 Thread Brian
On May 27, 9:00 pm, [EMAIL PROTECTED] (Brian) wrote: > Hi All- > I am trudging through some DBI, XML, etc.. I had a problem and was > baffled by how to get at array elements out of a series of pushed > array refs. But, by simplifying the problem, I found that the syntax I > used was in error. her

Re: PDF File

2007-05-28 Thread [EMAIL PROTECTED]
On May 26, 4:34 am, [EMAIL PROTECTED] (Alma) wrote: > On May 25, 10:16 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) > wrote: > > > > > On May 24, 5:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On May 24, 2:22 pm, Alma <[EMAIL PROTECTED]> wrote: > > > > > Hi All, > > > > > I need to st

Re: acccesing an hash

2007-05-28 Thread [EMAIL PROTECTED]
On May 28, 6:53 am, [EMAIL PROTECTED] (Jeevs) wrote: > my %hash = (jeevan=>'Ingale', Sarika =>'Bere'); > my @star = @hash{jeevan, Sarika}; > print @star; > > this prints ingale and bere but when i write Like Paul said, the hash is being treated as an array slice returning the values for "jeevan" a

IO::Socket::INET client hangs on no server on windoze

2007-05-28 Thread kenTk
If there is no server or no connection this hangs for about 20 seconds and then crashes with the following error message. The Timeout seems to make no difference and the 'warn' does not occur. If works file with a good connection to a server. Using 5.8.8 active perl. Anyone got any suggestions for

Re: Accessing hash

2007-05-28 Thread jeevs
On May 28, 11:35 am, [EMAIL PROTECTED] (Jeevs) wrote: > @hashi = @hash{qw (jeevan, sarika)}; > print @hashi; > > this gives me the values of keys jeevan and sarika.. how does this > work ... ok i got it ... and I think i was not clear in my query... I was expecting an hash slice to be %hash{qw(je

Re: acccesing an hash

2007-05-28 Thread Paul Lalli
On May 28, 1:53 am, [EMAIL PROTECTED] (Jeevs) wrote: > my %hash = (jeevan=>'Ingale', Sarika =>'Bere'); > my @star = @hash{jeevan, Sarika}; > print @star; > > this prints ingale and bere but when i write > > my %hash = (jeevan=>'Ingake', Sarika =>'Bere'); > my @star = %hash{jeevan, Sarika}; > print

Re: Array of Array refs

2007-05-28 Thread Paul Lalli
On May 28, 12:00 am, [EMAIL PROTECTED] (Brian) wrote: > I am trudging through some DBI, XML, etc.. I had a problem and was > baffled by how to get at array elements out of a series of pushed > array refs. What's to be baffled by? Have you read: perldoc perlreftut perldoc perllol perldoc perlds

Re: accesing a hash of an array of hashes

2007-05-28 Thread Paul Lalli
On May 27, 4:37 pm, [EMAIL PROTECTED] (Pauld) wrote: > thanks for the help - im looking up hash slices - perldoc perldata Entire arrays (and slices of arrays and hashes) are denoted by '@', which works much like the word "these" or "those" does in English, in that it indicates mult

Re: Accessing hash

2007-05-28 Thread Rob Dixon
jeevs wrote: why is it that when i write my %hash = (jeevan=>'ingale', sarika=>'bere' ); my @arr = @hash{jeevan, sarika}; print @arr; prints ingale bere can someone explain me how an @sign is used and what exactly goes in the secongline of thecode. contrary when i try something like replac

Re: Array of Array refs

2007-05-28 Thread Rob Dixon
Brian wrote: Hi All- I am trudging through some DBI, XML, etc.. I had a problem and was baffled by how to get at array elements out of a series of pushed array refs. But, by simplifying the problem, I found that the syntax I used was in error. here is the small sample, already debugged. Hope th

Accessing hash

2007-05-28 Thread jeevs
@hashi = @hash{qw (jeevan, sarika)}; print @hashi; this gives me the values of keys jeevan and sarika.. how does this work ... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

acccesing an hash

2007-05-28 Thread jeevs
my %hash = (jeevan=>'Ingale', Sarika =>'Bere'); my @star = @hash{jeevan, Sarika}; print @star; this prints ingale and bere but when i write my %hash = (jeevan=>'Ingake', Sarika =>'Bere'); my @star = %hash{jeevan, Sarika}; print @star; its an error.. Can someone explain or atleast point me to an

Re: perl multithreading

2007-05-28 Thread kenTk
On May 26, 10:06 am, [EMAIL PROTECTED] (Spx2) wrote: > hi,im new to multithreading altough ive read some papers on it...and > tried to made some programs > in perl using threads. > what would you recommend using with perl multithreading on windows. > what would you recommend reading on a broader sp

Re: Accessing hash

2007-05-28 Thread Srinivas
Hi, @days{'Jan','Feb'} Hash slice containing ($days{'Jan'},$days{'Feb'}) -extracted from programmin perl 3rd edition -srini jeevs wrote: why is it that when i write my %hash = (jeevan=>'ingale', sarika=>'bere' ); my @arr = @hash{jeevan, sarika}; print @arr; prints ingale bere can someo

Accessing hash

2007-05-28 Thread jeevs
why is it that when i write my %hash = (jeevan=>'ingale', sarika=>'bere' ); my @arr = @hash{jeevan, sarika}; print @arr; prints ingale bere can someone explain me how an @sign is used and what exactly goes in the secongline of thecode. contrary when i try something like replacing the @ sign

Array of Array refs

2007-05-28 Thread Brian
Hi All- I am trudging through some DBI, XML, etc.. I had a problem and was baffled by how to get at array elements out of a series of pushed array refs. But, by simplifying the problem, I found that the syntax I used was in error. here is the small sample, already debugged. Hope this helps someon

What modules should I use to transfer a video scrip through the net?

2007-05-28 Thread flee20062006
I am intended to make a scrip to do this: you could send a video scrip from your PC to a friend through the net. At the same time, the receiver should be able to play the video script.Yet, I don't know how to get Perl to do it? Which types of modules I may need? Should I use TCP/IP modules or some

Re: accesing a hash of an array of hashes

2007-05-28 Thread pauld
thanks for the help - im looking up hash slices - but id like to get something that works and then i can add new ideas etc so im going to leave it as it for the time being. Data::Dumper has helped sort out where an error is coming #!/usr/bin/perl -w use strict; use warnings; open O, "<$file" or