Question
What is range operator

Answers

range operator (..) is used to create sequential arrays.

#!/usr/bin/perl

@var_10 = (1..10);
@var_20 = (10..20);
@var_abc = (a..z);

print "@var_10
"; # Prints number from 1 to 10
print "@var_20
"; # Prints number from 10 to 20
print "@var_abc
"; # Prints number from a to z

Here double dot (..) is called range operator. This will produce the following result −

1 2 3 4 5 6 7 8 9 10
10 11 12 13 14 15 16 17 18 19 20
a b c d e f g h i j k l m n o p q r s t u v w x y z   Your Comment




More Software,operator Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What is the purpose of . Operator?

Define scope resolution operator?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?



Search
Can you Answer!!
  • Q Sql server - What is Sequence clustering algorithm?
  • Q David John Moore Cornwell is better known as what spy-story writer?
  • Q Humayun’s Tomb was built by
  • Q Describe the polymerase chain reaction and mention its applications.
  • Q Kavirajamarga was written by which Rashtrakuta King?
  • Q How connection is established in Datagram?
  • Q I mm compiling a program, and I seem to be missing one of the header files it requires
  • Q What exactly is oracle bpel process manager? what is it composed of? how does it relate to the rest of the stack?
  • Q What is a viewer?
  • Q Scripting language job description? job profile of Scripting language?
  • Q Partition of Bengal took place in: