david <[EMAIL PROTECTED]> writes:
> Harry Putnam wrote:
>
>>
>> Excuse my skull bone density... not sure I follow this. Not sure I
>> see how `chop' does anything to `\'
>>
>> [...]
>>
>
> assume your program is named scan.pl, what happen is you call it:
>
> scan.pl '\'
It will wait for input since files are required.
So if you supply files:
scan.pl '\' files
Trailing \ in regex m/\/ at /home/reader/scripts/perl/hdrscn1 line 22, <> line 1
> your script always assume user will be entering a valid reg to use. i am
> suggest that you should not trust the user on that. there is a good chance
> that your user will not supply a valid reg. in that case, your program will
> crash. you should trap that with the eval{} or with quote your reg before
Won't is still quite even with the eval, in the above case?
> passing it to Perl
Can you give an example of this?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]