Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: String parse

by OM_Zen (Scribe)
on Feb 01, 2003 at 04:53 UTC ( [id://231806]=note: print w/replies, xml ) Need Help??


in reply to String parse

Hi ,

use strict; while(<INPUT>){ local $/; my $line = $_; ########@push @lineinfo, split $line; ###### The @push .... is not a compiling code my @lineinfo = split(' ',$line); ########## @lineinfo = () ; I have less cluesss on what you are do +ing ######### You have to use strict; ######### learn about split,push commands and perldoc perlop ######### perldoc split ######### perldoc push ######### perldoc perlop ######### abotu strict module too

Replies are listed 'Best First'.
Re: Re: String parse
by ibanix (Hermit) on Feb 02, 2003 at 09:29 UTC
    You have to use strict

    Well no, you don't have to use strict. But it's recommended, to make your life easier. :-)

    ibanix

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Log In?
Username:
Password:

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

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

    No recent polls found