Jim Hansen wrote:
> THat's not doing it either. For some reason, when it
> is compiled, that line is ignored.
>
sorry, i missed the part where you said it was working as a script, but
not as a compiled executable.
I don't use the ActiveState compiler, and don't know why that would be
happening. Perhaps someone else has experience with this.
sorry i can't be more help. good luck
>
> --- Robert Johnson wrote:
> > Jim Hansen wrote:
> > >
> > > $name = 'HP4000 [PSserver01]';
> > > if ( $name =~ /[PSserver/ ) {
> > > next;
> > > }
> > > running this straight as a script with the '-d'
> > switch
> > > or without, it works fine, but if I compile it and
> > run
> > > it, for some reason it is ignored and I end up
> > with my
> > > issue. IS there a better way to trap for this?
> > >
> >
> > if you want to find a match, and the match includes
> > certain characters
> > -- e.g., ()[]{}\/$#%*. -- you have to precede these
> characters with a
> > backslash. because otherwise they have specific
> > functions defining the
> > regex.
> >
> > so the line should be written
> >
> > if ( $name =~ /\[PSserver/ )
> >
> >
> > --robert
> >
> >
> >
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs