Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: perl -d myprog autostarts - but only in one specific directory

by choroba (Archbishop)
on Jan 18, 2022 at 17:27 UTC ( #11140569=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl -d myprog autostarts - but only in one specific directory
in thread perl -d myprog autostarts - but only in one specific directory

> Surely a bug AFAICS.

AFAICF = as far as I can fix :-)

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^3: perl -d myprog autostarts - but only in one specific directory
  • Download Code

Replies are listed 'Best First'.
Re^4: perl -d myprog autostarts - but only in one specific directory
by bliako (Monsignor) on Jan 18, 2022 at 19:34 UTC

    I don't think the fix will work. I made a comment below. Thanks, I did not know it was that simple

        yes, you are right.

        Can there be some magic behind that -e 'con' which obviously did not kick in in the Unix case? I tried to use logic in the absence of a windows machine, but that failed me, being m$! "CON" (like LPT, AUX and some others) are all DOS reserved words and can not be the name of files, unless doing some hack (which will confuse Perl!). So, I am not sure that your dir CON failed because of that restriction or because of not existing a CON file. In any event, your perl oneliner is proof enough.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-21 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?