paramreddy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Hope all of you having good time.
I am new to perl and i am trying to learn perl.
Here i want to know whether we can assign scalar value to array.
example
$num=12345;
and
i want 12345 should be assigned to @a
@a = qw\1 2 3 4 5\
Can you help me in this?
Thanks in advance,
Parameshwar
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Assign scalar value to array
by ikegami (Patriarch) on Oct 09, 2013 at 14:21 UTC | |
Re: Assign scalar value to array
by flyby (Acolyte) on Oct 09, 2013 at 23:24 UTC | |
Re: Assign scalar value to array
by Anonymous Monk on Oct 09, 2013 at 22:01 UTC |
Back to
Seekers of Perl Wisdom