Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regular Expression

by pbeckingham (Parson)
on Aug 06, 2004 at 00:42 UTC ( [id://380420]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression

While looking at this node, I saw

$month=.0.$month;
and wondered what that leading period was on the number. Is .0 equivalent to 0.0?
my $s = 'abc'; $s = .0.$s; print $s, "\n";
yields 0abc, but then I tried:
my $n = .0; print $n, "\n";
which yields 0D, and so does
print .0, "\n";
So the newline character is being converted to its ASCII code. Would someone explain this to me please?

pbeckingham - typist, perishable vertebrate.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2024-03-28 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found