Works for me

#!/usr/bin/perl
#
#
use strict;
use Data::Dumper;
my $mystring = "abcde/fghi";
my @a = split (/\//,$mystring); 
print Dumper([EMAIL PROTECTED]);


__END__
OUTPUT
$VAR1 = [
          'abcde',
          'fghi'
        ];


Ram




On Thu, 2004-06-03 at 18:41, Singh, Ajit p wrote:
> Hello All,
> 
> I am trying to split a string with the / ( forward slash) as the marker.
> 
> $mystring = "abcde/fghi"
> 
> split (///,$mystring)  -- gives me compile error
> split (/\//,$mystring)  -- gives me abcdefghi
> 
> how do i specify / as the delimitter.
> 
> ----------------------------------------------------------------------------
> ----------------
> 
> regards,
> 
> Ajitpal Singh,



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to