|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PERL
DETAILS
Question: What are scalar variables?
Answer: Scalar variables are what many programming languages refer to as simple variables. They hold a single data item, a number, a string, or a perl reference. Scalars are called scalars to differentiate them from constructs that can hold more than one item, like arrays.
|
|
|
Category |
Perl Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9301 users |
Added on |
9/14/2014 |
Views |
68902 |
Rate it! |
|
|
Question:
What are scalar variables?
Answer:
Scalar variables are what many programming languages refer to as simple variables. They hold a single data item, a number, a string, or a perl reference. Scalars are called scalars to differentiate them from constructs that can hold more than one item, like arrays. Source: CoolInterview.com
scalar variables are one unti of data.the unit of data may be a number ,string and chunk of text. Source: CoolInterview.com
Answered by: raju | Date: 2/12/2010
| Contact raju
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What are the two different types of data perl handles?
|
View Answer
|
|
How do you give functions private variables that retain their values between calls?
|
View Answer
|
|
How many ways can we express string in Perl?
|
View Answer
|
|
What value is returned by a lone return; statement?
|
View Answer
|
|
What does new $cur->{LINK} do?
|
View Answer
|
|
Why does Perl not have overloaded functions?l
|
View Answer
|
|
Why does Perl not have overloaded functions?
|
View Answer
|
|
Why is it hard to call this function: sub y ?
|
View Answer
|
|
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
|
View Answer
|
|
Why are not Perls patterns regular expressions?
|
View Answer
|
|
What are scalar data and scalar variables?
|
View Answer
|
|
How to turn on Perl warnings? Why is that important?
|
View Answer
|
|
What happens when you return a reference to a private variable?
|
View Answer
|
|
What is Perl one-liner?
|
View Answer
|
|
How do I do fill_in_the_blank for each file in a directory?
|
View Answer
|
|
How to open and read data files with Perl
|
View Answer
|
|
Which of these is a difference between C++ and Perl?
|
View Answer
|
|
How do I set environment variables in Perl programs?
|
View Answer
|
|
Why we use Perl?
|
View Answer
|
|
Given a file, count the word occurrence (case insensitive)
|
View Answer
|