freeze after

2007-06-02 Thread Ryan
Hello. This is my first post to the List. I am just getting my feet wet with perl, my first programming language. I'm running perl 5.8.4 on Libranet linux, a now-defunct distro based on out-of-date Debian (Sarge or before, I think). I am having trouble inputting a value via . Here is my tro

Re: Passing arguments

2007-06-02 Thread Paul Lalli
On Jun 2, 9:18 am, [EMAIL PROTECTED] (Steve Bertrand) wrote: > > testsub(35); > > You call the sub with one parameter, integer 35. However, this won't > work as calling the sub before the sub is defined with a prototype will > barf with an error. No it won't. It will print a warning, if and only

Re: Passing arguments

2007-06-02 Thread Chas Owens
On 6/2/07, Alma <[EMAIL PROTECTED]> wrote: Hi, I need to pass id as parameters to a subroutine testsub(35); sub testsub($) { my $self = shift; my $id = @_; print "$id"; } Its printing 3 . am i going wrong in prototype . First off, don't use prototypes until you know exactly what

Re: Equal keys in hash

2007-06-02 Thread Chas Owens
On 6/2/07, Andrej Kastrin <[EMAIL PROTECTED]> wrote: Deal all, if the key already exists in the hash, then its value is overwritten. So, if I have the following structure of the input file A foo A faa A hoo B foo B aaa C bbb what is the procedure of choice to store all key-value pairs into the

Re: Passing arguments

2007-06-02 Thread Steve Bertrand
> testsub(35); You call the sub with one parameter, integer 35. However, this won't work as calling the sub before the sub is defined with a prototype will barf with an error. Let's assume had the sub call beneath the definition from the start. > sub testsub($) Above, your prototype says testsub

Re: Equal keys in hash

2007-06-02 Thread Rob Dixon
Andrej Kastrin wrote: Deal all, if the key already exists in the hash, then its value is overwritten. So, if I have the following structure of the input file A foo A faa A hoo B foo B aaa C bbb what is the procedure of choice to store all key-value pairs into the hash and print it out? Th

Equal keys in hash

2007-06-02 Thread Andrej Kastrin
Deal all, if the key already exists in the hash, then its value is overwritten. So, if I have the following structure of the input file A foo A faa A hoo B foo B aaa C bbb what is the procedure of choice to store all key-value pairs into the hash and print it out? Thanks in advance for any

Re: CPAN and Windows

2007-06-02 Thread Paul Lalli
On Jun 1, 4:38 pm, [EMAIL PROTECTED] (Ebarras) wrote: > I am _Very_ new to perl, and programing in general, so keep that in > mind. I am trying to use some CPAN modules with ActivePerl, and I am > having a difficult time of it. Is there a tool or something to > integrate these modules into perl for

Re: Passing arguments

2007-06-02 Thread Paul Lalli
On Jun 2, 3:54 am, [EMAIL PROTECTED] (Alma) wrote: > Hi, > > I need to pass id as parameters to a subroutine > > testsub(35); > > sub testsub($) >{ >my $self = shift; >my $id = @_; >print "$id"; > > } > > Its printing 3 That's just a lie. Why are you lying to us? Why are you not

Re: pr warn die question

2007-06-02 Thread Dr.Ruud
Paul Lalli schreef: > If you have to change existing code > in order to add new code, that's the definition of not scalable. "scalable" is about "doing more of the same", along one or more axes. For example: having a webpage full of numbers, that is doing a separate database query for every nu

Passing arguments

2007-06-02 Thread Alma
Hi, I need to pass id as parameters to a subroutine testsub(35); sub testsub($) { my $self = shift; my $id = @_; print "$id"; } Its printing 3 . am i going wrong in prototype . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://