Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Reaped: Re^4: Using wildcards to open files.

by NodeReaper (Curate)
on Oct 25, 2012 at 20:07 UTC ( #1000931=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using wildcards to open files.
in thread Using wildcards to open files.

This node was taken out by the NodeReaper on Oct 28, 2012 at 07:29 UTC
Reason: [kcott]: Reap: Virtual duplicate of Re^4: Using wildcards to open files. Slightly different wording - same info.

You may view the original node and the consideration vote tally.

  • Comment on Reaped: Re^4: Using wildcards to open files.

Replies are listed 'Best First'.
Re^5: Using wildcards to open files.
by kennethk (Abbot) on Oct 26, 2012 at 15:37 UTC
    You would do well to read some of the literature on posting questions on help forums effectively. See, for example, I know what I mean. Why don't you?, How (Not) To Ask A Question, How do I post a question effectively? or How To Ask Questions The Smart Way.

    When you directly interpolate your name into your string, it's like you literally typed that on the command line. If file names contain whitespace or shell meta characters, then the literally-interpolated string will mean something other than you intend. The solution is to use techniques other than direct interpolation -- there are a number of ways to get Perl to do the heavy lifting for you. I posted one such solution in Re: Using wildcards to open files.. What doesn't work about it? Have you even tried it?

    I'm guessing that this is a Windows system since the solution posted would have worked otherwise. The Windows command line does not escape the same way that most systems do. In particular, it does not read "\ " as an in-name space. What you need to do for a MS system is wrap the name in double quotes, like $cmd = qq{perl script.pl < "$file"};


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000931]
help
Chatterbox?
[stonecolddevin]: erix what is this wizardy? there's no sound for me :-(
[stevieb]: he comes and goes every few years.
[erix]: stonecolddevin: oh? Don't know, it works for me
[Sinistral]: stonecolddevin / stevieb - would 'he' in this context (looked at last 50 lines and didn't see discussion) be a certain solar timepiece user?
[stonecolddevin]: Sinistral yes indeed
[Discipulus]: he does not learn, nor teach, nor learn
[planetscape]: hello all
[stonecolddevin]: o/ planetscape
[Sinistral]: I think that just the sight of his username now causes a downvote storm. I agree, and the gratuitous use of formatting does make reading hard. I've given him +1 on things where there seemed to be actual good advice, but I think the big
[Sinistral]: nail in coffin was the rant against a Schwarzian Transform

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-06-22 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (530 votes). Check out past polls.