Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to make code smaller--saving steps and writing one liners

by perrin (Chancellor)
on May 09, 2009 at 03:46 UTC ( [id://762996]=note: print w/replies, xml ) Need Help??


in reply to How to make code smaller--saving steps and writing one liners

In general, making things easy to read is more important than making them short. In this case though, I'd agree that you're taking the long way around without a good reason. I'd do something like this (untested!):
print ($File::Find::name =~ m/^C:\/users\/User\/Music\/(.*)$/i);
P.S. Please use strict and warnings!

Replies are listed 'Best First'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-04-18 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found