Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Subtracting Stringified Negative Numbers

by FunkyMonk (Canon)
on Jun 22, 2007 at 16:33 UTC ( #622839=note: print w/replies, xml ) Need Help??


in reply to Subtracting Stringified Negative Numbers

You haven't been doing anything like this, have you?
$h{1, 2} = "hello";
This creates a key consisting of three characters: "1", $SUBSEP and "2". $SUBSEP has a default octal value of 034 (aka Ctrl-\).

my %h; $h{1, 2} = "hello"; $Data::Dumper::Useqq = 1; print Dumper \%h;

From perlvar:

$SUBSCRIPT_SEPARATOR $SUBSEP $; The subscript separator for multidimensional array emulation. +If you refer to a hash element as $foo{$a,$b,$c} it really means $foo{join($;, $a, $b, $c)}

Replies are listed 'Best First'.
Re^2: Subtracting Stringified Negative Numbers
by monkfan (Curate) on Jun 22, 2007 at 16:51 UTC
    That's exactly what I did. Thanks so much for pointing that out!
    FunkyMonk+++

    Regards,
    Edward

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://622839]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-10-22 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (275 votes). Check out past polls.

    Notices?