|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I've been using Perl for some time now, and never got around this one. Can anyone tell me the basic difference between these functions??
|
|
#2
|
|||
|
|||
|
q// is generally the same thing as using single quotes - meaning it doesn't interpolate values inside the delimiters.
qq// is the same as double quoting a string. It interpolates. qw// return a list of white space delimited words. @q = qw/this is a test/ is functionally the same as @q = ('this', 'is', 'a', 'test') qx// is the same thing as using the backtick operators. I've never used qr//, but it's got something to do with compiling regex's for later use. |
|
#3
|
|||
|
|||
|
Thanks a lot, that really clears things up. Thanks again...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > qq && qw && qr && qx |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|