Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to get environment variables?

Newsgroups: perl.perl6.language
Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <a...@shitov.ru>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Message-ID: <20031103172417.50059.qmail@onion.perl.org>
To: perl6-langu...@perl.org
Date: Mon, 03 Nov 2003 20:24:17 +0300
Reply-To: a...@shitov.ru
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: ru, en-us, en
MIME-Version: 1.0
Subject: Re: How to get environment variables?
References: <20031103083007.12455.qmail@onion.perl.org> <87vfq1lcvf.fsf@alibi.simon-cozens.org>
In-Reply-To: <87vfq1lcvf.fsf@alibi.simon-cozens.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Posted-By: 212.46.255.136
Approved: n...@nntp.perl.org
From: a...@shitov.ru (Andrew Shitov)
Lines: 25

I tried this one-line programme for example:

my %e = %ENV;

and got this (parrot-0.0.13/perl are built under mandrake linux):

Global '_HV_ENV' not found
Error: '/parrot-0.0.13/parrot -r env.imc ' failed with exit code 1
Stopped at /parrot-0.0.13/languages/perl6/perl6 line 339
	main::mydie(256,'/parrot-0.0.13/parrot -r env.imc ') called at 
/parrot-0.0.13/languages/perl6/perl6 line 819
	main::pass4('env.imc','env.warn') called at 
/parrot-0.0.13/languages/perl6/perl6 line 741
	main::pass2('env.imc','env.warn') called at 
/parrot-0.0.13/languages/perl6/perl6 line 435
	main::output_tree('P6C::prog=ARRAY(0x8ef6e5c)','env.p6','env.warn') 
called at /parrot-0.0.13/languages/perl6/perl6 line 500
	main::pass1('Parse::RecDescent=HASH(0x8f2ed70)','env.p6','env.warn','undef') called at /parrot-0.0.13/languages/perl6/perl6 line 562
	main::run() called at /parrot-0.0.13/languages/perl6/perl6 line 219

> Are you sure you're using the Perl 6 hash syntax? (%ENV{FOO} rather than Perl
> 5-style $ENV{FOO})
>
> What version of Perl 6 are you using?