Mazhar am Donnerstag, 6. April 2006 11.48:
> thanks Raymond for the help it works,
> and what do u mean by variable interpolation

Hello Mazhar

It will help you a lot to know and use the documentation system of perl. 
You can get an overview by typing (on the command line):

perldoc perl
(docs)

perldoc perldoc 
(documentation system)

For your question with interpolatation, see

perldoc perlop
(and there "Quote and Quote-like Operators" and 
"Regexp Quote-Like Operators")

For builtin funtions (here, the example is "q"):

perldoc -f q

Some questions are answered by

perldoc -q your question or some word(s) of the question

The online docs can be found at http://www.perl.org/docs.html

Variable interpolation is expanding variable values into a string, done by 
double quotes (or qq). Think about the following code (run in from command 
line):

perl -le '
  use strict; use warnings;
  my $word=q{Tip: };
  my @words=qw/ look at the docs /;
  print q($word @words), "\n";
  print qq($word @words\n);
'

btw, @04 is not a valid (array) variable name; they must not start with a 
digit, as not keyword/builtin does.

Other tips: When asking questions,
- choose an apropriate subject line
- snip away irrelevant parts of the post


HTH!

Dani

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to