if( '$##$' eq '$#'. substr( $ENV{drive}, -1 ) .'#$') { $ENV{drivep} = substr($ENV{drive} ,0,-1); } | [reply] |
| [reply] |
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.
| [reply] |
| [reply] |
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.
| [reply] [d/l] [select] |
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.
| [reply] |