Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

It works for me: The following c

Status
Not open for further replies.

raider2001

Technical User
Joined
Apr 27, 2001
Messages
488
Location
US
It works for me:

The following code:
my $file ="test.html";
my @title = split (/\./, $file);
print "file=$file\n";
print "title1=$title[1]\n";

Outputs:
file=test.html
title1=html
 
Hi Raider

I wound up using a slightly different syntax for the split.

my @title = split('\.', $file);
my @title = split (/\./, $file);

Cal In the begining
Let us first assume that there was nothing to begin with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top