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

Re^2: unlink fails to delete files with perculiar names

by salva (Abbot)
on Nov 22, 2011 at 09:05 UTC ( #939394=note: print w/replies, xml ) Need Help??


in reply to Re: unlink fails to delete files with perculiar names
in thread unlink fails to delete files with perculiar names

Putting the variable inside quotes is useless in this context.
  • Comment on Re^2: unlink fails to delete files with perculiar names

Replies are listed 'Best First'.
Re^3: unlink fails to delete files with perculiar names
by stefbv (Deacon) on Nov 22, 2011 at 09:18 UTC

    I think it is not useless it's about dealing with spaces in file names.

    Update: Sorry, made some further tests and I was wrong.

      The only effect of putting some var inside quotes is to convert it into an string but Perl already does that for your implicitly most of the times.

      It only makes a difference in those rare cases where the internal representation of the variable determines what to do. For instance, the given construction in Perl 5.10 uses different comparisons when the internal representation of the scalar is a number or a string (and it is currently considered broken because of that).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939394]
help
Chatterbox?
[ambrus]: I think the minimal implementation here is just a timer and io function, plus pushing to the @REGISTRY.
[Corion]: ambrus: Yeah, at least that's what I think I'll start with. A timer and potentially the dummy IO function that never is ready
[ambrus]: That only lets you invoke the main loop from Prima->run;, not from AnyEvent->condvar- >recv; but that shouldn't matter

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2016-12-08 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.