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

Re: Question on Strawberry's Portable .bat file

by Anonymous Monk
on Aug 03, 2012 at 18:07 UTC ( #985298=note: print w/ replies, xml ) Need Help??


in reply to Question on Strawberry's Portable .bat file

See also Where should I post X?

This is PerlMonks. Stay on topic. This is not the place to ask about bugs in your javascript (or the other 'j' language) nor how to learn write a formula in a spreadsheet, even though there are many Monks knowledgeable in such disciplines.

Although, you can employ Basic debugging checklist even in batch file programming ( ECHO )


Comment on Re: Question on Strawberry's Portable .bat file
Re^2: Question on Strawberry's Portable .bat file
by Anonymous Monk on Aug 03, 2012 at 18:24 UTC
    if( '$##$' eq '$#'. substr( $ENV{drive}, -1 ) .'#$') { $ENV{drivep} = substr($ENV{drive} ,0,-1); }

      Thank you, that gave me the answer I needed.

Re^2: Question on Strawberry's Portable .bat file
by dasgar (Deacon) on Aug 03, 2012 at 19:52 UTC

    In my opinion, this is on topic. The OP is trying to get a better understanding of the batch file that you have to run in order to use portable Strawberry Perl. Sounds like a Perl related question to me. (In case you're not familiar with portable Strawberry Perl, the batch script modifies the environment (such as path) for just that command prompt window.)

    From my perspective, your "if it isn't Perl code, you're not allowed to ask about it on PerlMonks" attitude means folks can't ask for help with creating new XS modules or trying to debug issues with compiling Perl modules or compiling Perl from source code since that involves dealing with code that is not purely Perl code. That's just ridiculous IMHO.

    That's my 2 cents.

    I apologize if the tone of this post sounds harsh. Just tired of seeing folks trying to impose unwritten "policies" by criticizing the person for daring to violate one of those "policies" rather than offering at least a little assistance to the OP. Decided to speak up for once about it.

      Just tired of seeing folks trying to impose unwritten "policies" by criticizing the person for daring to violate one of those "policies" rather than offering at least a little assistance to the OP. Decided to speak up for once about it.

      Well said that man!++

      I wish more people would speak up more often on this issue.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

      The OP is trying to get a better understanding of the batch file that you have to run in order to use portable Strawberry Perl.

      Yes, the OP is essentially trying to learn batch programming, not trying to solve some strawberryperl problem he's encountered, and AFAIK, that is off topic

      From my perspective ... That's just ridiculous IMHO.

      Yes, I agree, because that is not the same perspective at all -- compiling perl, compiling modules, writing XS, is all clearly on topic -- having perlmonks teach you batch file programming is off topic

      I apologize if the tone of this post sounds harsh. Just tired of seeing folks trying to impose unwritten "policies" by criticizing the person for daring to violate one of those "policies" rather than offering at least a little assistance to the OP. Decided to speak up for once about it.

      Well, that is quote from the official policy, the "written" one that I linked, check your facts. If you have a problem with the policy, complain to the management.

      And FWIW, I'm not sure how quoting the official policy is criticism.

      And FWIW, I did offer both assistance ( Although, you can employ Basic debugging checklist even in batch file programming ( ECHO ) ) and the literal answer

      So yeah, I too am tired of , well, of whatever your posting qualifies as -- inaccurately (libelously?) defending lazy off topic posters?

      How hard is to copy/paste that line and put ECHO in front of it?

      code

      echo DRIVE %drive% echo DRIVEP %drivep% echo ONLY %drive:~-1% echo EQUALS $#\#$==$#%drive:~-1%#$ echo NEW SET drivep=%drive:~0,-1%

      output

      DRIVE C:\ro\sham\bo\ DRIVEP C:\ro\sham\bo\ ONLY \ EQUALS $#\#$==$#\#$ NEW SET drivep=C:\ro\sham\bo

      Instead of speaking up next time, consider saving it for a better fit.

        So in your (AM's) world, if someone asks a question on XML::LibXML obviously that is offtopic since it discuses the XML language and not the Perl language, and if someone asks how read works you tell them to refer to their system's LibC manpage since that isn't Perl either, that is LibC's API.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-08-30 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (292 votes), past polls