
makals
Novice
Dec 31, 2010, 5:00 AM
Post #1 of 4
(1680 views)
|
|
question about split
|
Can't Post
|
|
hello i have this script : #!/usr/bin/perl # summary.plx use warnings; use strict; $/ = ""; my $counter = 1; while (<>) { print $counter++, ":"; print ((split /\n/, $ _)[0]); print "\n"; } ------------- can someone exlpain these two lines: print ((split /\n/, $_)[0]); print "\n"; and forwhat is the 0
|