[ale] Perl Question

Robert L. Harris Robert.L.Harris at rdlg.net
Wed Feb 7 19:37:18 EST 2007



$a =~ /$b(.*$)/
$c=$1;

$c will equal ".xyz"


Thus spake Terry Bailey (terry at bitlinx.com):

> Hi;
> 
> The following is relative to a Perl script.
> 
> $a contains the following string without a new line appended
> 
> java.xyz
> 
> 
> $b contains the following string without a new line appended
> 
> java
> 
> Using $a and $b, what is the easiest way to have $c contain
> 
> .xyz
> 
> 
> Thanks,
> 
> Terry Bailey
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

:wq!
---------------------------------------------------------------------------
Robert L. Harris                     | GPG Key ID: E344DA3B
                                         @ x-hkp://pgp.mit.edu
DISCLAIMER:
      These are MY OPINIONS             With Dreams To Be A King,
       ALONE.  I speak for              First One Should Be A Man
       no-one else.                       - Manowar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature




More information about the Ale mailing list