Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] no perlvar

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
rovernut
Posts: 108
Joined: 2013-11-20 10:50
Been thanked: 1 time

[SOLVED] no perlvar

#1 Post by rovernut »

I've searched both the forum and google and can't find anything related.
Both on my wheezy 7.8 laptop (perl v5.14.2) and my jessie 8.1 (perl v5.20.2) perlvar returns nothing.
Is there a package that needs to be installed that I'm missing seeing?
Last edited by rovernut on 2015-09-01 20:32, edited 1 time in total.
Tom Rowe

Four wheel drive allows you to get stuck
in places even more inaccessible.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: no perlvar

#2 Post by GarryRicketson »

Not sure what it is you are asking, my search got this:
key words=
perlvar for debian
http://perldoc.perl.org/perlvar.html
There is much more:
http://perldoc.perl.org/5.8.9/index-tutorials.html
http://www.perlmonks.org/?node=perlman%3Aperlfaq
Try also on your computer,

Code: Select all

man perl
That explains how to use perl , also from the manual:
If you're new to Perl, you should start by running "perldoc
perlintro", which is a general intro for beginners and provides some
background to help you navigate the rest of Perl's extensive
documentation. Run "perldoc perldoc" to learn more things you can do
with perldoc.
---------------------------

Code: Select all

garry@debian:~$ perldoc
You need to install the perl-doc package to use this program. 
You may also need to install "perl", when you try the

Code: Select all

man perl
If perl is not installed, you will get a similar message, or "not found" message.
I've searched both the forum and google and can't find anything related.
If you want I would be happy to explain more on how to do a search, so in the future your searches do find something, but that would be a different topic.
-------------------------------------------------------------------------------------
Edited: Just a little "clue", this is in the "perldoc"
-v perlvar
The -v option followed by the name of a Perl predefined variable
will extract the documentation of this variable from perlvar.

Examples:

perldoc -v '$"'
perldoc -v @+
perldoc -v DATA
Just goes to show, how much someone can learn, just doing a few searches, I did not know the answer to your question, I used to know nothing about "perl", did a few searches, and in less the 15 minuets found all of this ... :D
Your welcome !

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: no perlvar

#3 Post by GarryRicketson »

Code: Select all

$ man perlvar
PERLVAR(1) Perl Programmers Reference Guide PERLVAR(1)

NAME
perlvar - Perl predefined variables

DESCRIPTION
The Syntax of Variable Names
Variable names in Perl can have several formats. Usually, they must
begin with a letter or underscore, in which case they can be
arbitrarily long (up to an internal limit of 251 characters) and may
contain letters, digits, underscores, or the special sequence "::" or
"'". In this case, the part before the last "::" or "'" is taken to be
a package qualifier; see perlmod.
Just a small part of it, ...................but in a nutshell,
"perlvar" is not a command that is use just like that by itself.
----------
Is there a package that needs to be installed that I'm missing seeing?
There are many libraries, and modules you can add,
libmail-verp-perl
libtk-gbarr-perl
Various Tk Perl widgets
libvariable-magic-perl
module to associate user-defined magic to variables from Perl
Are a few, there are more, ...the rest is up to you, read the docs, and the manual.

rovernut
Posts: 108
Joined: 2013-11-20 10:50
Been thanked: 1 time

Re: no perlvar

#4 Post by rovernut »

Thanks.
I was given incorrect information. I was told, "For a list of all predfined variables type perlvar."
That would explain why I couldn't find anything on getting that command to work the way I was told.
Tom Rowe

Four wheel drive allows you to get stuck
in places even more inaccessible.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: [SOLVED] no perlvar

#5 Post by GarryRicketson »

Here is a list of the pre-defined variables,
http://www.catonmat.net/download/perl.p ... iables.pdf
I don't know anything about perl , as I mentioned, but I notice that
"perlvar" can be used after you have started "perl", but to be honest I am not sure how it is used.
This may be of some interest:
http://www.tutorialspoint.com/perl/perl ... iables.htm

Post Reply