Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: How do I turn a hash into a name=value string?

by JediWizard (Deacon)
on Jul 28, 2005 at 17:05 UTC ( #479050=note: print w/replies, xml ) Need Help??


in reply to Re: How do I turn a hash into a name=value string?
in thread How do I turn a hash into a name=value string?

Out of curiosity: Why are you bothering to assign to a variable inside your map statement?

I have not tested it, but I am pretty sure if you run with warnings and strict you will be warned the $a is used only once. Beyond that you really should not use $a or $b as they are special variables used for sort.


They say that time changes things, but you actually have to change them yourself.

—Andy Warhol

Replies are listed 'Best First'.
Re^3: How do I turn a hash into a name=value string?
by bangers (Pilgrim) on Jul 29, 2005 at 08:30 UTC
    I tried something elase and first, then decided the above way was better. But you're right, it isn't needed - although I always run with strict and there aren't any warnings.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2020-05-26 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?