Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: Re: dsfddf

by d4vis (Chaplain)
on Sep 16, 2000 at 01:25 UTC ( [id://32748]=note: print w/replies, xml ) Need Help??


in reply to Re: dsfddf
in thread Reaped: dsfddf

Heh...well, it was just a joke but the reply got me to read the docs on use strict, which I (obviously) hadn't really used much. So is;
#!/usr/bin/perl -w use strict; my %lefthand= qw(dsfddf asdfsfda); my $lefthand=(); print $lefthand {dsfddf};

the proper usage?
Thanks for the tip.

~novice d4vis
#!/usr/bin/fnord

Replies are listed 'Best First'.
RE: RE: Re: dsfddf
by tye (Sage) on Sep 16, 2000 at 03:02 UTC

    You don't need the my $lefthand= (); line since you never use a scalar named "lefthand". $lefthand{dsfddf} accesses the hash. You use "$" because you are getting a scalar back, but it has nothing to do with the variable $lefthand.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found