Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Padding with \s

by bronto (Priest)
on Sep 13, 2002 at 14:10 UTC ( [id://197587]=note: print w/replies, xml ) Need Help??


in reply to Re: Padding with \s
in thread Padding with \s

You forgot pack:

$string = 'abcd' ; $padded = pack('A40',$string) ; print "[$padded]\n" ;

prints [abcd                                  ]

;-)

Ciao!
--bronto

# Another Perl edition of a song:
# The End, by The Beatles
END {
  $you->take($love) eq $you->made($love) ;
}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found