Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Removing whitespace

by Molt (Chaplain)
on May 07, 2002 at 14:10 UTC ( #164646=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Removing whitespace
in thread Removing whitespace

It is a valid way, and is Perl's way of doing 'Multidimensional hashes' without hitting hashes of hashes. Admittedly $; isn't normally space, but such is.

In Programming Perl 2nd Ed this is all on Page 133, my 3rd Ed. is at home at the moment I'm afraid so I can't give page reference in that.

The following code actually works.. which is somewhat scary when it's simply not What You Mean, as I don't think it is in this case.

#!/usr/bin/perl -w use strict; $ENV{'Paul', 'Golds'} = 'Molt'; print $ENV{'Paul', 'Golds'};


Comment on Re: Re: Re: Removing whitespace
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2015-07-04 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls