Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: The .. operator explained

by runrig (Abbot)
on Aug 05, 2003 at 20:49 UTC ( #281161=note: print w/replies, xml ) Need Help??


in reply to The .. operator explained

My favorite use of .. so far is:
# From the "LIBFILES =" line to the first line that # doesn't end in a backslash, # collect library directory names if (my $status = s/^\s*LIBFILES\s*=// .. !s/\\$//) {
which matches the lines I wanted in a Makefile while simultaneously removing what I didn't want (the 'LIBFILES=' section prefix and the backslash continuation marker) from the lines.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281161]
help
Chatterbox?
[GrandFather]: Us: "What scaling do we need to apply to the numbers from the SDK for the wibble?". Them: "Oh, the numbers from the SDK for the wibble are already correct, they don't need scaling"
[GrandFather]: In our code: wibble range 1 scale by 1, range 2 scale by 2, range 3 scale by 4, range 4 scale by 8

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-08-24 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (365 votes). Check out past polls.

    Notices?