[Omaha.pm] regex question

Britt Gray britt.c.gray at gmail.com
Thu Apr 17 13:48:29 PDT 2014


i need to wake up.

just changing a scaler variable with a space to empty.

Thank you!



On Thu, Apr 17, 2014 at 3:46 PM, Jay Hannah <jay at jays.net> wrote:

> On Apr 17, 2014, at 3:38 PM, Britt Gray <britt.c.gray at gmail.com> wrote:
> > I have lost my mind and can’t figure out what the following line of code
> does.
> >
> > It is removing something from $adj.
> >
> > $adj =~ s/^ $//;
>
> If $adj is ' ' then it will become ''.
>
> ^ means "starts with"
> $ means "end with"
>
> HTH,
>
> j
>
>
>
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20140417/a819f70f/attachment.html>


More information about the Omaha-pm mailing list