Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

december's scratchpad

by december (Pilgrim)
on Jul 23, 2004 at 04:52 UTC ( #376798=scratchpad: print w/ replies, xml ) Need Help??

sub strip ($) { $_ = shift if @_; s/(^\s*|\s*$)//g; s/\s\s/ /g; return $_; } my $journal1 = map { s/[\s.-]*$//g; $_ } $marc->subfield(773, "t"); (my $journal2) = map { s/[\s.-]*$//g; $_ } $marc->subfield(773, "t"); my $journal3 = strip(map { s/[\s.-]*$//g; $_ } $marc->subfield(773, "t +")); (my $journal4) = strip(map { s/[\s.-]*$//g; $_ } $marc->subfield(773, +"t")); print "1 = $journal1\n"; print "2 = $journal2\n"; print "3 = $journal3\n"; print "4 = $journal4\n"; 1 = 1 2 = Tieteessä tapahtuu 3 = 1 4 = 1
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2016-05-31 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?