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
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
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
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
> 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
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
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
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
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
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
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://
11 matches
Mail list logo