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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SScanf for Perl? 1

Status
Not open for further replies.

karyn1617

Programmer
Feb 17, 2005
6
US
Is there an equivalent to sscanf in Perl? I want to read in white space delimited strings into variables..I tried String::scanf but I don't have that library?
 
From the keyboard

Code:
$allmyinput=<STDIN>;
@data=split /\s+/, $allmyinput;

HTH
--Paul

cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top