Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: syntax question

by QM (Vicar)
on Oct 24, 2013 at 08:35 UTC ( #1059411=note: print w/ replies, xml ) Need Help??


in reply to Re: syntax question
in thread syntax question

Update: Sorry, I should have read the thread first, toolic said the same thing.

next if substr($fld0,-1,1) eq "X";

is not exactly equivalent to

next if $fld0 =~ /X$/;

since $ at the end of a regex is a bit special. From perlre #Metacharacters:

$ Match the end of the line (or before newline at the end)

-QM
--
Quantum Mechanics: The dreams stuff is made of


Comment on Re^2: syntax question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2015-07-04 01:54 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